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 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.

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