[Issue 9797] to!int() cannot convert hexadecimal numbers

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Apr 1 18:24:11 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=9797

b2.temp at gmx.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX
           Severity|major                       |enhancement

--- Comment #5 from b2.temp at gmx.com ---
> In D a hexadecimal number is prefixed with 0x. Not being able to recognize a valid D hexadecimal number is a bug in to!int().

And then even if done, someone will come and report that `to()` is not able to
convert "0x1_2_3_4_P5" (valid D hexadecimal litteral)! 
So your argument is invalid.

--


More information about the Digitalmars-d-bugs mailing list