Cold Help System: Programming: ColdC Reference Manual: Functions: Data: fromliteral()


ANY fromliteral(STRING data)

This function takes the literal representation of the data given in the string argument data and parses it to actual data, returning the result. If it cannot parse the data, the error ~type is thrown. Example:

fromliteral("[1, 'foo]")
=> [1, 'foo]


frob_class() | size() | toerr() | tofloat() | toint() | toliteral() | toobjnum() | tostr() | tosym() | type() | valid() | fromliteral() | frob_value() | frob_handler()


the Cold Dark