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:03
Subject:
Re: pp_add -> pp_i_add efficiency hack?
Message ID:
20001005125842.A6336@the.earth.li
On Thu, Oct 05, 2000 at 06:38:59AM -0500, Jarkko Hietaniemi wrote:
> > Argh. Hang on, I didn't do anything floating point. Why has it upgraded to
> > PVNV?
> 
> Because that's the way Perl does it.  I hate it too.

Yup, it dawned on me a few minutes after posting that we can't do much
else because to discover whether you can use the integer
addition/subtraction/etc. on, say, C<$a+3> you have to go through the
whole looks_like_number thing to find out whether C<$a> is really an
integer or a float. So it would lose anyway. Bletch.

-- 
You're not Dave.  Who are you?

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