lua-users home
lua-l archive

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





2014-04-05 18:57 GMT+02:00 Rena <hyperhacker@gmail.com>:
I've actually implemented some functions that can copy nearly any value between Lua states: http://pastie.org/8996668




Hi,

When you copy Lua functions, you should also take care of their upvalues else they won't work as expected (if at all) in the destination state.

You may want to have a look at lanes, which supports inter-state data copying.

--
Benoit.