lua-users home
lua-l archive

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


Let me add some points:
For Lua functions,lua_dump() and lua_load() are supposed to work.lua_dump() can convert a function to bytecode and then you can pass it to another lua_State,then load it by lua_load().
AFAIK,there is probably no a perfect solution.Many multi-thread libraries that implemented by multiple lua_States try to make the users feel that all threads are running in a lua_State,however,this goal has not been achieved yet.

Best wishes,
Suote127