[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] lua-marshal - fast table serialization
- From: Richard Hundt <richardhundt@...>
- Date: Tue, 04 Jan 2011 13:39:40 +0100
On 01/04/2011 12:23 PM, Alex Bradbury wrote:
On 3 January 2011 11:34, Richard Hundt<email@example.com> wrote:
I thought I'd throw this little lib over the wall in the hope that somebody
finds it useful:
I noticed one bug - tbl_marshal doesn't check its argument type which
results in a segfault if you pass it something which isn't a table.
I'm not entirely sure about the current error policy. Attempts to
marshal a LUA_TTHREAD just result in a nil being stored, while
persisting a C function raises an error. The attempts to marshal and
unmarshal functions of course fail on LuaJIT 2 (probably lua-marshal
should at least check the lua_dump return value).
Thanks very much, this is good feedback. I'll add/tidy up error checking.