|
|
||
|
David Burgess wrote:
So lua_setfenv() on the thread has the same result as
lua_replace(L,LUA_GLOBALSINDEX);
Yes, except that the latter can only be done from within the thread, whereas the former can be done even while the thread isn't running.
-- Aaron