[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: table/function serialization
- From: Patrick Donnelly <batrick@...>
- Date: Wed, 25 Mar 2009 04:23:17 -0600
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