lua-users home
lua-l archive

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


> There's been request to have full closure copying between detached Lua  
> states.  I think this can currently be done for C-based closures, but  
> not for Lua ones.

Like I said earflier, it is *not* possible to copy anything between
unrelated states using lua_xmove, if that's what you mean. It may seem
to work in some cases but unrelated states have disjoint gc lists and
string pools. Once gc runs in the source state it may leave bad pointers
in the target state.