Closed Sygmei closed 7 years ago
I get the following error :
Assertion failed: util::toMainThread(state) == util::toMainThread(ref_.state()), file lua_ref_impl.hpp, line 297
Normally you can not. but you can try serialization.
https://www.lua.org/pil/12.1.html http://lua-users.org/wiki/TableSerialization
Remember that some type can not be serialized.(e.g function)
Then why passing from one LuaState to another works ?
luaP["something"] = luaQ["somethingelse"];
Lua has not that feature.
Okay, thanks :) Good job for your lib by the way, it's really comfortable to use
How to pass a value from one state to another ? Using kaguya::LuaRef doesn't work, is there another way ?
Doing it like that works but I want to store a kaguya::LuaRef or something like that