[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Sharing objects between states
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 3 Aug 2011 09:11:40 +0200
On Wed, Aug 3, 2011 at 9:08 AM, STPeters <firstname.lastname@example.org> wrote:
> Can an object be created in one Lua state, passed to C++, and then passed to
> a script running in a different Lua state?
The short answer is no, not if these are separate Lua 'universes' (not
different coroutine states).
Some libraries (e.g. Lanes) allow for this but they have to copy the
object across to the other state, which is a delicate operation.