[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua state
- From: Edgar Toernig <froese@...>
- Date: Fri, 7 May 2004 00:48:54 +0200
> >I need to serialize lua_state.
> One simple way to do that is to use memory backed by a persistent file.
Is there any Lua-using game without userdata? At the moment you have
userdata you also have to save the C-data that it references.
IMHO trying to serialize complete Lua state is silly. Nobody wants to
do that with C/C++ - why should it be different with Lua?
 Start with the FILE* userdata from the standard iolib *beg*