lua-users home
lua-l archive

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

On Wed, Aug 3, 2011 at 9:08 AM, STPeters <> 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.

steve d.