[perl #58410] [TODO] Deprecate n_* variants of the math opcodes

Allison Randal allison at perl.org
Wed Dec 31 02:24:13 UTC 2008


Will Coleda via RT wrote:
> On Thu Aug 28 00:03:51 2008, allison at perl.org wrote:
>>
>> The plan is to make the regular variants (like 'add') create a new 
>> destination PMC, and then deprecate the old n_* variants (like 'n_add').
> 
> Does this include n_not , n_bnot, and n_bnots ?

Yes. The 'not', 'abs', 'bnot', and 'bnots' opcodes already have 
2-argument variants, the 'n_*' alternates are unnecessary.

The task also involves modifying the corresponding vtable functions 
('logical_not', 'absolute', 'binary_not', 'binary_nots') so they return 
a new PMC, rather than morphing the existing destination PMC. (Many of 
them already do this, so the 'n_*' variants were actually already doing 
the same thing as the regular opcodes.)

Allison


More information about the parrot-dev mailing list