[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Userdata finalization order
- From: Javier Guerra Giraldez <javier@...>
- Date: Mon, 18 Oct 2010 16:29:03 -0500
On Mon, Oct 18, 2010 at 3:56 PM, Francesco Abbate
<francesco.bbt@gmail.com> wrote:
> But I can make to you a simple Lua example:
>
> A = {}
> B = { 'hello world' }
> A[1] = B
in this case, i wouldn't say that "A depends on B"; but that "A owns
B" (the same with the plot, which owns the lines). thus, finalizing a
Lua reference to B shouldn't destroy it; but let the A's finalizer to
deal with all it's owned subobjects.
--
Javier
- 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, Francesco Abbate