lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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