Variable types
SGScript has 10 primary variable types:
null: the 'lack of a better value' typebool: boolean, true/falseint: signed integerreal: floating point numberstring: byte buffer(SGS) function: function that was defined in and compiled from SGScript codeC function: function defined in C codeobject: the extension type and container for complex built-in typesptr: the pointer typethread: the context/thread/coroutine type
Extended variable types (built on object):
array: a dynamically allocated variable arraydict: a map/table structure where variables are mapped to string keysmap: a map/table structure where variables are mapped to variable keysclass: object that uses two other objects to build its interfaceclosure: a callable object consisting of another callable and several variablesevent: an object that allows to stop a thread
In this section:
