lua-users home
lua-l archive

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


> >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*