parrotcode: Parrot Class | |
Contents | PMCs |
src/pmc/parrotclass.pmc - Parrot Class
The structure of a parrot class is reasonably straightforward. The PMC's cached integer value is the number of attribute slots that an object of this type requires. The data pointer holds a pointer to an array of PMCs. That array has:
NULL
),
while the value is the offset to the attribute.void init()
void init_pmc(PMC *init)
newclass
opcode.
The init
argument is not a PMC* but the classname
STRING.void destroy()
INTVAL isa(STRING *classname)
*classname
.PMC *get_class()
STRING *name()
void visit(visit_info *info)
*info
is the visit info,
(see include/parrot/pmc_freeze.h).void freeze(visit_info *info)
void thaw(visit_info *info)
void thawfinish(visit_info *info)
METHOD PMC *get_parents()
|