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: nob...@puremagic.com
        ReportedBy: timon.g...@gmx.ch


--- Comment #0 from timon.g...@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: -------

Reply via email to