lua-users home
lua-l archive

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


----- Original Message -----
> From: "William Ahern" <william@25thandClement.com>
> 
> On Sat, Jan 05, 2013 at 02:41:07AM +0100, lihwa@gmx.com wrote:
> > Greetings to all Lua programmers,
> > 
> > I want to save a complete table, as it is, to a file. According to
> > the
> > information at http://lua-users.org/wiki/SaveTableToFile, it is not
> > possible, because "Userdata, Functions, Metatables" will not be
> > saved.
> > This is a serious restriction.
> 
> Can you identify any other language that supports saving those kinds
> of
> things out-of-the-box? I can't think of any whatsoever.

Erlang gives you out-of-the-box access to the primitives used to serialize data in its distribution mechanism. This would allow you save data in a file and recreate it later.

Robert