lua-users home
lua-l archive

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

Patrick Donnelly wrote:
The LG structure holds everything (most) of what Lua needs for the
required global state and main Lua state. It is useful for malloc'ing
everything needed in one call (among other things). The main state is
special in that it is never collected and is not (supposed to be) used
as a coroutine.


So LG is some sort of base-package (a main/root coroutine and a global_State) on which you can throw more coroutines (lua_State/ threads) and these make up the Lua 'instance'?