#724: [bug]  Parrot fails numeric conversion of ucs2 strings
----------------------+-----------------------------------------------------
 Reporter:  pmichaud  |        Owner:          
     Type:  bug       |       Status:  reopened
 Priority:  normal    |    Milestone:          
Component:  core      |      Version:  1.2.0   
 Severity:  medium    |   Resolution:          
 Keywords:            |         Lang:          
    Patch:            |     Platform:          
----------------------+-----------------------------------------------------

Comment(by pmichaud):

 Replying to [comment:5 particle]:
 >
 > the canonical representation for NaN and Inf are 'NaN' and 'Inf'.  other
 variants of capitalization or spelling are not valid; they must be
 converted to the format above.  don't mimic the old atof behavior.

 FWIW, that's not what I remember us discussing in the Perl 6 design
 meeting (2009-01-28).  In Perl 6 at least, "inf" is treated as infinity,
 not zero.

 In a larger sense, most groups seem to have accepted that "inf" and "nan"
 conversions should be case-insensitive for parsing.  Displaying the
 mixed-case "Inf" and "NaN" on output is (afaik) a P6-only phenomenon,
 most other languages seem to consistently do either "inf" or "INF"
 (often by simply deferring to whatever atof does).

 Pm

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/724#comment:11>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to