Reputation:
I have a table in one Lua script which I want to share with other Lua scripts, which are loaded in different lua_State, so they can call methods in that table. Is it possible to do that?
Upvotes: 3
Views: 368
Reputation: 72312
No, unless you copy the data between states manually. Lua states are completely separate. Lua threads on the other hand share data. But do not confuse those with OS threads.
Upvotes: 3