lua-users home
lua-l archive

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


I think you have thought of most of the alternatives. I had a similar
problem and used lazy initialization which tests if the thread
LUA_GLOBALSINDEX is the same table as the main thread
LUA_GLOBALSINDEX, if they are the same I create a thread
globals table that is metatabled (__index) to the global table
of the main thread.

DB