parrotcode: Lua Number | |
Contents | Language Implementations | Lua |
pmc/luanumber.pmc - Lua Number
LuaNumber
extends LuaBase
to provide a class with the behaviour of the Lua Number
type.
void init()
PMC *new_from_string(STRING *rep, INTVAL flags)
.const .LuaNumber n = "12.34"
STRING *name()
INTVAL get_integer()
FLOATVAL get_number()
STRING *get_string()
void set_integer_native(INTVAL value)
void set_number_native(FLOATVAL value)
VOID set_string_native(STRING *value)
void increment()
void decrement()
PMC *neg (PMC *dest)
void i_neg ()
PMC *add (PMC *value, PMC *dest)
void i_add (PMC *value)
PMC *subtract (PMC *value, PMC *dest)
void i_subtract (PMC *value)
PMC *multiply (PMC *value, PMC *dest)
void i_multiply (PMC *value)
PMC *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)
INTVAL is_equal (PMC *value)
INTVAL cmp (PMC *value)
PMC *concatenate (PMC *value, PMC *dest)
void i_concatenate (PMC *value)
Francois Perrad.
Klaas-Jan Stol.
|