lua-users home
lua-l archive

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


> 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