Re: Duplicate code in PerlNum

2002-02-21 Thread Nicholas Clark
On Tue, Feb 12, 2002 at 11:28:26PM +, Simon Glover wrote: > > Currently the add, subtract, multiply and divide methods in perlnum.pmc > are all coded along the lines of: > > void add (PMC * value, PMC* dest) { > if(value->vtable == &Parrot_base_vtables[enum_class_PerlInt]) {

Duplicate code in PerlNum

2002-02-12 Thread Simon Glover
Currently the add, subtract, multiply and divide methods in perlnum.pmc are all coded along the lines of: void add (PMC * value, PMC* dest) { if(value->vtable == &Parrot_base_vtables[enum_class_PerlInt]) { *dest->vtable = &Parrot_base_vtables[enum_class_PerlNum]; *