Nicholas Clark <[EMAIL PROTECTED]> wrote:
> pmc2c.pl says:
>=item C<DYNSUPER(a,b,c)>
> As above, but uses the actual dynamic type of C<SELF>.
> but for a dynamic class, if I try to use it I get errors such as:
> perl5null.pmc: In function `Parrot_Perl5NULL_set_pointer_keyed_int':
> perl5null.pmc:24: `enum_class_Perl5cargo_cult' undeclared (first use in this
> function)
You could try this:
static int enum_class_Perl5cargo_cult;
pmclass Perl5NULL dynamic extends Perl5cargo_cult {
void class_init() {
enum_class_Perl5cargo_cult = pmc_type(interp, "Perl5cargo_cult");
}
...
}
leo