Steve Fink <[EMAIL PROTECTED]> wrote: > I needed to create a Match PMC object for holding the match groups > (parenthesized expressions and capturing rules) from a regex match. > Unfortunately, it works by using another new PMC type, the MatchRange > PMC,
> .. One PMC knowing about > another currently means they need to be static PMCs, not dynamic. > (AFAIK) Dunno, if that is already solved. Mattia? > +classes/matchrange.pmc - MatchRange Numbers PMC Class > +#define RANGE_START(pmc) UVal_int((pmc)->obj.u) > +#define RANGE_END(pmc) UVal_int2((pmc)->obj.u) Please don't. PMC_int_val(pmc) and PMC_int_val2(pmc) are working. > + void init () { > + PObj_active_destroy_SET(SELF); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ What shall be destroyed here? leo