NAME ^

src/pmc/ref.pmc - Reference to a PMC

DESCRIPTION ^

The vtable functions for the Ref base class.

All methods not present below get a default body autogenerated inside Parrot::Pmc2c.

Methods ^

void init()

Sets the referenced PMC to PMCNULL.

void init_pmc(PMC *initializer)

Sets the referenced PMC to *initializer.

void init_pmc_props(PMC *init, PMC *props)

Sets the referenced PMC to *init, and associates the properties in *props with the reference.

void set_pmc(PMC *other)

Sets the referenced PMC to *other.

PMC *get_pmc()

Get the referenced PMC.

void mark()

Marks the referenced PMC as live.

These two methods must be implemented because they are not delegated.

INTVAL type()

Returns the type of the PMC, not the type of the referenced PMC.

STRING *name()

Returns the name of the PMC, not the name of the referenced PMC.

HISTORY ^

Initial revision by leo 2003.09.01.

Allowed null value by TOGoS 2004.07.28 (evil+bad?)


parrot