lua-users home
lua-l archive

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


On Thu, 2007-12-13 at 09:16 -0200, Luiz Henrique de Figueiredo wrote:
> > Perhaps have os.exit() take a flag that controls if objects should be
> > collected before exit() is called?
> 
> It could but it would only work for the Lua state in which os.exit was called.

Hmm - and I suppose going down the route of having global state that
tracks open Lua states is a sticky path best avoided.

On a similar note, I've once found myself in a position where it would
be convenient to destroy a lua_State from within Lua, and have it return
to the top-level calling C function.  I can quite imagine some
stickyness in doing that too, but has similar ever been considered?

B.