lua-users home
lua-l archive

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


> References are currently serialized once for each time encountered:
> 
>     x = { }; { x, x }
> 
> Becomes
> 
>     { { }, { } }
> 
> Recursive table serialization fails as attempt to save table with more
> than 250 nesting levels (arbitrary customizable value). (Note that
> current implementation does twice as much recursive C calls in this
> case.)

Check

http://lua-users.org/lists/lua-l/2007-05/msg00328.html

for a simple pickler based on Roberto's struct library that recursively
serializes tables (and functions). It might give you some ideas.

Cheers,
Luis

-- 
Computers are useless. They can only give you answers.
                -- Pablo Picasso

-- 
Luis Carvalho (Kozure)
lua -e 'print((("lexcarvalho@NO.gmail.SPAM.com"):gsub("(%u+%.)","")))'