http://d.puremagic.com/issues/show_bug.cgi?id=9797

           Summary: to!int() cannot convert hexadecimal numbers
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Sarath Kumar Kodali <[email protected]> 2013-03-23 
10:14:23 PDT ---
$ cat conv_bug.d
import std.conv;

void main()
{
        auto var = to!int("0x123");
}
$ rdmd conv_bug.d
std.conv.ConvException@/usr/include/dmd/phobos/std/conv.d(1612): Unexpected 'x'
when converting from type string to type int

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

Reply via email to