[DGD] Re: A slight confusion about light-weight objects

Erwin Harte harte at is-here.com
Mon Mar 29 18:09:29 CEST 2004


On Mon, Mar 29, 2004 at 11:02:50AM -0500, Stephen Schmidt wrote:
> On Mon, 29 Mar 2004, Erwin Harte wrote:
> > So you can do something like this, it looks like:
> >
> >   object a, b, master;
> >   master = compile_object("/data/foo");
> >   a = new_object(master);
> >   a->set_some_data(...);
> >   b = new_object(a);
> 
> In this case, is master a LWO or not? And would the existence of
> master prevent a or b from being cleaned up in the LWO way?

In this case master is the result of a compile_object(), which can
only create non-LWO objects.

> I think the answers are that master is not a LWO but a and b
> will be removed when there are no references to them despite
> the existence of master (as long as master keeps no reference
> to a and b).

That's my understanding as well.

Erwin.
-- 
Erwin Harte <harte at is-here.com>
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list