[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: GC order
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 08 May 2003 15:07:54 -0300
> Since you cannot put __gc methods on Lua objects other than userdata,
> the order of destruction of non-userdata objects is irrelevant.
They are more than irrelevant; they are undetectable. Lua has no way
to know when an object without a _gc method is collected. So, you
can implement the collection for those objects in any order you want,
without breaking the specification.
-- Roberto