lua-users home
lua-l archive

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


There are many examples of serialization functions (many already on
the wiki). I've written one [1] myself for personal use that
specifically serializes tables. It was meant to serialize an
environment. It successfully serializes upvalues and shared upvalues.
The library will use debug.shareupvalue (see [2] for discussion, [3]
for most up to date patch) if present.

[1] http://www.batbytes.com/serialize.lua
[2] http://lua-users.org/lists/lua-l/2008-02/msg01173.html
[3] http://www.batbytes.com/upvalue.patch

-- 
-Patrick Donnelly

"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."

-Will Durant