Summary: Add support for different base conversions in std.conv
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos

--- Comment #0 from Andrej Mitrovic <> 2011-07-05 
14:58:40 PDT ---
This doesn't work currently:

Python's int() function solves this by taking an optional base argument:

So it can be called like:
clr = int("0000FF", 16)

I've seen this used in some functions which convert web colors to an integer.

So std.conv could take an optional base argument or maybe try to parse the
string and figure out if it's hexadecimal (since this is probably the most
commonly used base after base-10).

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to