lua-users home
lua-l archive

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


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