File serial.lua
A module to save tables to strings. Then the string can be executed with loadstring() obtainig a load of the table
Functions
| serialize (name, val) | Serialize a table. |
Functions
- serialize (name, val)
-
Serialize a table. Should be called in this way:
serial.serialize("t",t)Parameters
- name: string containing the table name or nil.
- val: table that will be serialized.
Return value:
the serialization of t in the form "t=something" if name != nil, otherwise it returns only something.