develooper Front page | perl.perl5.porters | Postings from September 2014

[perl #122856] Inconsistent string vs number handling for chr(Inf)

Thread Previous
From:
Father Chrysostomos via RT
Date:
September 26, 2014 21:54
Subject:
[perl #122856] Inconsistent string vs number handling for chr(Inf)
Message ID:
rt-4.0.18-10299-1411768475-728.122856-15-0@perl.org
On Fri Sep 26 14:03:50 2014, jhi wrote:
> On Friday-201409-26, 16:49, Father Chrysostomos (via RT) wrote:
> > "Inf" and 0+Inf have the same numeric and string representations, so
> > chr should treat them the same way.  Either we should revert to
> > treating inf as 0 (or 0xff, whichever), or make chr("Inf") die, too.
> 
> Death.

(Sounds like a threat.)

I’ll go ahead and fix it.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=122856

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