[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Overriding assignment to do userdata copy instead of reference
- From: "Javier Guerra" <javier@...>
- Date: Tue, 23 Sep 2008 13:47:00 -0500
On Tue, Sep 23, 2008 at 12:50 PM, Matthew Armstrong
<turkeypotpie@gmail.com> wrote:
>>>>
> So, if I could have this line:
> b = a.b
> ... do a copy instead of a reference assignment, I'd be ok. There also
> might be some other ways to solve this problem, so I'm not hung up on using
> this method.
I'd guess the easiest way is to add a copy() method to your objects
--
Javier