[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: state of the Lua nation on resource cleanup
- From: David Manura <dm.lua@...>
- Date: Wed, 11 Feb 2009 11:47:49 -0500
On Wed, Feb 11, 2009 at 7:45 AM, Roberto Ierusalimschy wrote:
> > would the order of close calls be deterministic?
> You could trust the manual :) ... finalizers for userdata
> are called in reverse order of their creation,
> among those collected in that cycle.
Yes, I didn't realize that was specified behavior, though I wonder if
Lua reimplementations that utilize a native garbage collector (
http://lua-users.org/wiki/LuaImplementations ) correctly implement
that behavior too.