sym_register [function]
sym_register( string name, var )
Register a persistent item (symbol) by the specified name.
- Symbols are used for serialization to map unserializable and persistent items in both ways, to preserve their linkage in the serialized data.
- This function is equivalent to sgs_RegSymbol in the C API.
myfunc = function(){}; sym_register( "myfunc", myfunc );