NAME ^

src/pmc/pointer.pmc - Pointer

DESCRIPTION ^

These are the vtable functions for the Pointer base class.

The actual pointer is in PMC_data.

Methods ^

void init()

Initializes the pointer.

void morph(INTVAL type)

Does nothing.

void mark()

Marks the pointer as live.

PMC *clone()

Creates and returns a clone of the pointer.

INTVAL get_integer()

Returns the pointer value as an integer.

FLOATVAL get_number()

Returns the pointer value as a floating-point number.

STRING *get_string()

Returns the pointer value as a Parrot string.

INTVAL get_bool()

Returns whether the pointer is not NULL.

INTVAL is_same(const PMC *pmc2)

Returns whether the pointer has the same value as *pmc2.


parrot