[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: state of the Lua nation on resource cleanup
- From: Kristofer Karlsson <kristofer.karlsson@...>
- Date: Wed, 11 Feb 2009 18:01:42 +0100
I can only answer for Kahlua, which doesn't support finalizers at all, i.e. no __gc for metatables.
On Wed, Feb 11, 2009 at 5:47 PM, David Manura <firstname.lastname@example.org>
On Wed, Feb 11, 2009 at 7:45 AM, Roberto Ierusalimschy wrote:> You could trust the manual :) ... finalizers for userdata
> > would the order of close calls be deterministic?
> are called in reverse order of their creation,Yes, I didn't realize that was specified behavior, though I wonder if
> among those collected in that cycle.
Lua reimplementations that utilize a native garbage collector (
http://lua-users.org/wiki/LuaImplementations ) correctly implement
that behavior too.