parrotcode: Perl Undef | |
Contents | PMCs |
classes/perlundef.pmc - Perl Undef
PerlUndef
extends PerlInt
to provide a class with the behaviour of the Perl undef
value.
INTVAL get_integer()
0
.FLOATVAL get_number()
0.0
.STRING *get_string()
PMC *get_pmc()
INTVAL get_bool()
my $a; print $a if $a;
INTVAL is_same(PMC *pmc2)
*pmc2
shares the same vtable.void set_integer_native(INTVAL value)
PerlInt
with value value
.void set_integer_same(PMC *value)
void set_string_native(STRING *value)
PerlString
with the value of *value
.void add(PMC *value, PMC *dest)
void add_int(INTVAL value, PMC *dest)
void add_float(FLOATVAL value, PMC *dest)
void subtract(PMC *value, PMC *dest)
void subtract_int(INTVAL value, PMC *dest)
void subtract_float(FLOATVAL value, PMC *dest)
void multiply(PMC *value, PMC *dest)
void multiply_int(INTVAL value, PMC *dest)
void multiply_float(FLOATVAL value, PMC *dest)
void divide(PMC *value, PMC *dest)
void divide_int(INTVAL value, PMC *dest)
void divide_float(FLOATVAL value, PMC *dest)
void modulus(PMC *value, PMC *dest)
void modulus_int(INTVAL value, PMC *dest)
void modulus_float(FLOATVAL value, PMC *dest)
void bitwise_or(PMC *value, PMC *dest)
void bitwise_or_int(INTVAL value, PMC *dest)
void bitwise_and(PMC *value, PMC *dest)
void bitwise_and_int(INTVAL value, PMC *dest)
void bitwise_xor(PMC *value, PMC *dest)
void bitwise_xor_int(INTVAL value, PMC *dest)
void bitwise_not(PMC *dest)
void concatenate(PMC *value, PMC *dest)
void concatenate_str(STRING *value, PMC *dest)
*dest
.INTVAL is_equal(PMC *value)
*value
is false.void logical_or(PMC *value, PMC *dest)
void logical_and(PMC *value, PMC *dest)
void logical_xor(PMC *value, PMC *dest)
void logical_not(PMC *dest)
PerlScalar
.void repeat(PMC *value, PMC *dest)
void repeat_int(INTVAL value, PMC *dest)
PerlString
in *dest
.INTVAL defined()
void increment()
PerlInt
with value 1
.void decrement()
PerlInt
with value -1
.
|