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

Re: pp_add -> pp_i_add efficiency hack?

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
October 5, 2000 05:15
Subject:
Re: pp_add -> pp_i_add efficiency hack?
Message ID:
20001005071528.A3141@chaos.wustl.edu
On Thu, Oct 05, 2000 at 12:58:42PM +0100, Simon Cozens wrote:
> 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

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.

> integer or a float. So it would lose anyway. Bletch.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

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