| parrotcode: Lua Table | |
| Contents | Language Implementations | Lua |

classes/luatable.pmc - Lua Table

LuaTable extends Hash to provide a class with the behaviour of the Lua Table type.
TRIVIAL IMPLEMENTATION : Table is just a Parrot Hash,
like in Lua 4.0.
Now,
Lua 5.0 uses a hybrid data structure with a Hash part and an Array part.

STRING *name()STRING *get_string()INTVAL get_bool()nil and false make a condition false; any other values makes it true.PMC *get_pmc_keyed (PMC *key)table accessor.void set_pmc_keyed (PMC *key, PMC *value)table mutator.
Original code by Klaas-Jan Stol.
|
|
|