lua-users home
lua-l archive

Re: Userdata finalization order

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


2010年10月17日 Javier Guerra Giraldez <javier@guerrag.com>:
> 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)
I was thinking like you before discovering that it is not actually the
case. I've actually experienced this problem and it took me some time
to find it.
See this thread http://lua-users.org/lists/lua-l/2010-08/msg00024.html
and the answer of Benoit Germain.
-- 
Francesco

AltStyle によって変換されたページ (->オリジナル) /