Thread overview
[Issue 6160] New: std.conv.to!real/double/float: Ignore _ to match the rest of D
Jun 15, 2011
timon.gehr@gmx.ch
[Issue 6160] std.conv.to: Ignore _ to match the rest of D
Sep 20, 2011
Kenji Hara
Sep 22, 2011
Jonathan M Davis
June 15, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6160

           Summary: std.conv.to!real/double/float: Ignore _ to match the
                    rest of D
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: timon.gehr@gmx.ch


--- Comment #0 from timon.gehr@gmx.ch 2011-06-15 04:55:53 PDT ---
writeln(1000_000_000e50L); // 1e59
writeln(to!real("1000_000_000_e50"));
// std.conv.ConvException@std/conv.d(37): std.conv(758): Can't convert value
`_000_000e50' of type const(char)[] to type real

'to' should be changed to ignore embedded "_", so that it is able to convert all valid D literals to their respective values.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 20, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6160


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2011-09-20 05:41:36 PDT ---
https://github.com/D-Programming-Language/phobos/pull/269

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 22, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6160


Jonathan M Davis <jmdavisProg@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jmdavisProg@gmx.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------