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

Re: [PATCH] Is infinity a number?

Thread Previous
From:
Simon Cozens
Date:
November 29, 2000 07:11
Subject:
Re: [PATCH] Is infinity a number?
Message ID:
20001129151120.A31638@pembro33.pmb.ox.ac.uk
On Wed, Nov 29, 2000 at 03:00:12PM +0000, Nicholas Clark wrote:
> On Wed, Nov 29, 2000 at 02:48:20PM +0000, Simon Cozens wrote:
> >  perl -we 'print 0+"infinity"'
> > tells me that:
> >  Argument "infinity" isn't numeric in addition (+) at -e line 1.
> > But then it treats it like a number, instead of zero:
> >  inf
> > 
> > I believe that this warning is spurious.
> 
> Does your sv.c look like this:
> with that last s++; after the Y y line?

Yes, but that's nothing to do with what I was fixing. :) I was
fixing the fact that the return value of looks_like_number is 0
in the "inf" or the "infinity" cases, which generated the warning.

-- 
"Consider a spherical bear, in simple harmonic motion..."
		-- Professor in the UCB physics department

Thread Previous


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