[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Userdata finalization order
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 18 Oct 2010 21:50:23 -0200
> > i can't think of an example where:
> >
> > - A can be created before B
> > - but A depends on B (how did it exist before B, then?)
> > - you have to destroy A before B
> >
>
> objA = ClassA();
> objB = ClassB();
> objA:Bind(objB);
> -- Now A depends on B.
>
> Regards, James.
A refers to B, but does not "depend on" it. Otherwise, objA would be
in an inconsistent state before the line "objA:Bind(objB)".
-- Roberto
- References:
- Userdata finalization order, Petri Häkkinen
- Re: Userdata finalization order, Wesley Smith
- Re: Userdata finalization order, Petri Häkkinen
- Re: Userdata finalization order, Francesco Abbate
- Re: Userdata finalization order, Javier Guerra Giraldez
- Re: Userdata finalization order, Francesco Abbate
- Re: Userdata finalization order, Roberto Ierusalimschy
- Re: Userdata finalization order, Francesco Abbate
- Re: Userdata finalization order, Javier Guerra Giraldez
- Re: Userdata finalization order, James Rhodes