Difference between revisions of "Serial"

m (Updates)
Line 3: Line 3:
 
==Features==
 
==Features==
 
As keys: Strings, numbers, and booleans
 
As keys: Strings, numbers, and booleans
 +
 
As values: Strings, numbers, booleans, functions without upvalues, tables, recursive tables, and certain objects.
 
As values: Strings, numbers, booleans, functions without upvalues, tables, recursive tables, and certain objects.
  

Revision as of 23:14, 22 June 2011

Serial

Converts tables into Lua script that, when run, recreates the table.

Features

As keys: Strings, numbers, and booleans

As values: Strings, numbers, booleans, functions without upvalues, tables, recursive tables, and certain objects.

To make an object supported, make a function __serialize in the metatable that returns a string that recreates the object.

Download

Serial on Github