parrotcode: Integer PMC class | |
Contents | PMCs |
classes/integer.pmc - Integer PMC class
Integer
provides an integer for languages that want a value-restricted integer type without going to an I register.
static void integer_divide(Parrot_Interp interp, PMC *self, PMC *value, PMC *destination)
*self
by *value
,
placing the result in *destination
.void class_init()
class_init()
code is run during <Parrot_<class
_class_init()>>.divide()
with integer_divide()
.void set_integer_native(INTVAL value)
void set_number_native(FLOATVAL value)
value
.void set_string_native(STRING *value)
*value
to a number.void set_pmc(PMC *value)
*value
.FLOATVAL get_number()
INTVAL get_integer()
INTVAL get_bool()
STRING *get_string()
void add(PMC *value, PMC *dest)
*value
to the integer and returns the result in *dest
.void increment()
void decrement()
void absolute()
dest
to the absolute value of SELF.INTVAL cmp(PMC *value)
*value
.
|