[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Not able to copy Lua closures between states
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 3 Jul 2008 07:51:35 -0300
> 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.