lua-users home
lua-l archive

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


On Sun, Oct 17, 2010 at 6:24 AM, Francesco Abbate
<francesco.bbt@gmail.com> wrote:
> suppose now that both "a" and "b" becomes unreachable. What happens is
> that Lua GC will free both of them regardless of the environment table
> of "a" and so the finalisation order can be violated.

is that true?

what i would expect is that "a" is unreachable, but GC considers "b"
reachable by "a", even if "a" isn't, so "b" would only be collected
after "a" (in a different GC cycle)

-- 
Javier