[DGD] A question about object pointers
Bart van Leeuwen
bart at wotf.org
Tue Jan 13 00:28:18 CET 2004
On Mon, 12 Jan 2004, Robert Forshaw wrote:
> I'd first like to say that I've tried to test this with the kernel lib using
> the 'code' command it would not work. It simply said I could not clone the
> object. Anyway, I'm confused as to whether an object pointer still holds its
> value after an object is destructed. In other words:
>
> object o;
> o = clone_object("/dummy.c");
> destruct_object(o);
> if(o) say("Object still points to something, even though it isn't
> there.\n");
> if(o == nil) say("Object doesn't point to anything.\n");
o will be nil
Which was incidentely mentioned in one of the discussions in the last few
days relating to keeping track of clones ;)
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list