parrotcode: Super Class | |
Contents | PMCs |
classes/super.pmc - Super Class
A Super PMC holds an object and redirects method lookup to the parent of the object's class.
.sub meth method
.local pmc s
s = new .Super, self
s."meth"()
.end
void init(PMC *obj)
void init_pmc(PMC *obj)
obj
.void set_pmc(PMC *obj)
obj
to this Super instance.PMC *get_pmc(void)
void mark()
PMC *find_method(STRING *name)
*name
in the parent class of the bound object.Initial revision by leo 2005.07.31.
|