I definitely thought of using duplicate in my get methods so that we are returning a true duplicate, but isn't there known issues with duplicate?  Is the duplicate function corrected in the 6.1 updater?

> If you really want a copy, you can use duplicate().  That won't for
> object instances though, if you want to duplicate those, you have to
> write a clone method of some sort.
>
> cheers,
> barneyb
>
>
> On Wed, 08 Sep 2004 16:02:56 -0400, Michael Hodgdon <[EMAIL PROTECTED]
> net> wrote:
> > Hey Jim,
> >
> > Thanks for getting back to me.  Unfortunately it does make sense.  I
> really thought (and was hoping) that when you ask a function for some
> data that it returns a copy of that data not a reference to that
> objects data.  What is the standard practice for this?  How do you
> truly protect an objects data from corruption if when you use a getter
> on it it returns a reference pointer not a copy?
> >
> >
> --
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.
com
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to