[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A garbage collector question
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 8 Oct 2012 14:36:54 -0300
> >> >From Lua you cannot see more than one Lua state. The entire world is
> >> one Lua state. So, that state is the one that os.exit closes. There is
> >> no other.
> >>
> >> -- Roberto
> >>
> >
> > That seems to conflict with the statement that it calls exit and terminates
> > the host program. How do other states survive that?
>
> Clearly, they don't. They get abruptly terminated, with no final gc sweep run.
Exactly. This is a problem of the host program. For Lua, other Lua
states in the host are like other Tcl states in the host.
-- Roberto