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

Re: pp_add -> pp_i_add efficiency hack?

Thread Previous | Thread Next
Simon Cozens
October 5, 2000 05:17
Re: pp_add -> pp_i_add efficiency hack?
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About