parrotcode: Lua abstract base class | |
Contents | Language Implementations | Lua |
pmc/luabase.pmc - Lua abstract base class
LuaBase
provides an abstract base class for some Lua types.
void morph(INTVAL type)
PMC *clone()
INTVAL get_bool()
true
.PMC *get_pmc_keyed (PMC *key)
void set_bool(INTVAL value)
void set_pmc_keyed (PMC *key, PMC *value)
PMC *neg (PMC *dest)
void i_neg()
PMC *logical_not(PMC *dest)
get_bool
& set_bool
)INTVAL defined()
void *invoke(void *next)
void add(PMC *value, PMC *dest)
void i_add (PMC *value)
void subtract(PMC *value, PMC *dest)
void i_substract (PMC *value)
void multiply(PMC *value, PMC *dest)
void i_multiply (PMC *value)
void divide(PMC *value, PMC *dest)
void i_divide (PMC *value)
PMC *modulus (PMC *value, PMC *dest)
void i_modulus (PMC *value)
PMC *pow (PMC *value, PMC *dest)
void i_pow (PMC *value)
PMC *concatenate (PMC *value, PMC *dest)
void i_concatenate (PMC *value)
PMC *len()
PMC *tonumber()
nil
.PMC *tostring()
string
.__tostring
or get_string
).PMC *find_metamethod(STRING *method_name)
*method_name
.PMC *get_metatable()
Francois Perrad.
|