Re: [mlist] RE: [GD-General] Off the shelf scripting languages
Brought to you by:
vexxed72
From: Thatcher U. <tu...@tu...> - 2003-04-24 02:13:15
|
On Apr 23, 2003 at 12:05 +0300, Ivan-Assen Ivanov wrote: > > To support serialization, the interpreter stacks must not only > NOT be intertwined with the C stack - the "stackless" property of > Stackless Python, and, I presume Lua 5.0 - but also must not contain > any live pointers to real memory - or provide a mechanism for > serializing the state of each execution thread. In general, the Lua stack will be chock full of pointers to live objects, as will the Lua objects on the heap. So as Tom says, you serialize this just like you serialize anything else -- traverse the live objects, keep track of object ID's, fix up pointers, etc. -- Thatcher Ulrich http://tulrich.com |