lua-users home
lua-l archive

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


On Fri, Sep 23, 2005 at 10:16:27AM +0500, Zulfiqar Malik wrote:
> Can someone tell me how i can make an exact duplicate (/clone/copy) of a
> lua_State such that the stack and tables are intact? I need this for a
> special purpose. Is there any public implementation for such a method
> because i think that the basic lua library does not provide anything of this
> sort. 

I think the Pluto serialization library can handle this kind of thing:

http://lua-users.org/wiki/PlutoLibrary

Best,

-- 
Shannon Stewman         | Let us walk through the waning night,
Caught in a whirlpool,  | As dawn-rays tickle our toes, the dew soothes
A quartering act:       | Our blistered soles, and damp bones stir
Solitude or society?    | As crimson cracks under the blue-grey sky.