Lua datatypes
From wikinotes
Documentation
Primitives
Nil
nil
is the absence of a valuenil
within a table represents an absent keynil
Boolean
true falseNumber
A single type number represents both 64-bit integers/floats.
123 123.4String
An immutable byte-sequence, encoding-agnostic.
All strings must fit iwthin a single integer.Function
Lua can call native lua, and C functions.
UserData
Represents a block of raw memory.
- full userdata -- an object with a block of memory managed by lua
- light userdata -- a C pointer value
Thread
Collections
Table
Associative arrays (keys may be numbers, or any lua value except nil)