develooper Front page | perl.perl5.porters | Postings from October 2000

Re: pp_add -> pp_i_add efficiency hack?

Thread Previous | Thread Next
From:
Simon Cozens
Date:
October 5, 2000 05:17
Subject:
Re: pp_add -> pp_i_add efficiency hack?
Message ID:
20001005131311.B6419@the.earth.li
On Thu, Oct 05, 2000 at 07:15:28AM -0500, Jarkko Hietaniemi wrote:
> Urque?  By the time you can are able to say C<$a+3> the looks_like_number
> thing has already been done and you have an IV/UV/NV called $a.

Eh? But $a may be a PV. If it's a PV, you have to re-examine it, at
runtime, to see whether the PV contains an NV or an IV/UV. (If we want
to split IV and NV treatment of arithmetic operators) At which point,
you might as well just use the NV method anyway.

-- 
"How should I know if it works?  That's what beta testers are for.  I only
coded it."
(Attributed to Linus Torvalds, somewhere in a posting)

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About