411 REFERENCE · Wikibooks
Lua Programming/userdata
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
The userdata /datatype/ can be used to store raw memory data in variables.
Userdata values can only be created or modified via the application interface
In lua, it is not possible to /create/ or /modify/ userdata except via the C /application interface/.
Predefined operations
The only /predefined operation/s that can be performed against userdata is /assignment/ and /identity/ testing. It is possible to define /operation/s for userdata by using /metatable/s
There are two forms of userdata
The datatype userdata takes two forms: Light Userdata and Heavy Userdata.
Light userdata
Heavy userdata