Leopold Toetsch wrote:
If there are no objections, I'll continue with:
5) infix method signature change:
METHOD PMC* add( [INTERP, SELF,] PMC* rhs, PMC ´*dest) { if (!dest) dest = pmc_new(INTERP, SELF->vtable->base_type); ... return dest; }
If the destination PMC is passed in, it's used else a new PMC of an appropriate type is created.
We need this basically for 4 reasons:
[ ... ]
and
7) separate inplace methods
Opcodes like:
d += r # add d, r
To simplify the MMD function signature change, dynclasses scalars should inherit all identical code from Parrot core scalars.
leo