NAME ^

src/classes/super.pmc - Super Class

DESCRIPTION ^

A Super PMC holds an object and redirects method lookup to the parent of the object's class.

SYNOPSIS ^

  .sub meth method
      .local pmc s
      s = new .Super, self
      s."meth"()
  .end

Methods ^

void init(PMC *obj)

Create an unbound super instance.

void init_pmc(PMC *obj)

Initialize a new super instance, bound to the obj.

void set_pmc(PMC *obj)

Bind the object obj to this Super instance.

PMC *get_pmc(void)

Return the bound object.

void mark()

Set the bound object live.

PMC *find_method(STRING *name)

Find the method for *name in the parent class of the bound object.

SEE ALSO ^

src/classes/parrotobject.pmc

HISTORY ^

Initial revision by leo 2005.07.31.


parrot