Lua Programming/userdata

The userdata datatype can be used to store raw memory data in variables.

Userdata values can only be created or modified via the application interfaceEdit

In lua, it is not possible to create or modify userdata except via the C application interface.

Predefined operationsEdit

The only predefined operations that can be performed against userdata is assignment and identity testing. It is possible to define operations for userdata by using metatables

There are two forms of userdataEdit

The datatype userdata takes two forms: Light Userdata and Heavy Userdata.

Light userdataEdit

Heavy userdataEdit