|
> If I have code like > lua_State* L= lua_create() > lua_State* L1 = lua_newthread(L1); > ... > lua_replace(L1, LUA_GLOBALSINDEX); > Does this replace LUA_GLOBALSINDEX in the main thread(L) as well? No. Threads have their own globals, but share the registry. -- Wim