Re: [perl #58410] [TODO] Deprecate n_* variants of the math opcodes
[email protected] (Allison Randal) Tue, 30 Dec 2008 18:24:13 -0800
| Newsgroups | perl.perl6.internals |
|---|---|
| Message-ID | <[email protected]> |
Will Coleda via RT wrote: > On Thu Aug 28 00:03:51 2008, [email protected] 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