[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Structure of Lua (In C)
- From: Olivier Hamel <evilpineapple@...>
- Date: Sat, 04 Jul 2009 19:45:27 -0400
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'?