[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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[1].
IMHO trying to serialize complete Lua state is silly. Nobody wants to
do that with C/C++ - why should it be different with Lua?
Ciao, ET.
[1] Start with the FILE* userdata from the standard iolib *beg*