[Issue 20568] Unable to convert string to int or uint ... if string having underscore character but work with float ....
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 8 16:04:02 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20568
Basile-z <b2.temp at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |b2.temp at gmx.com
--- Comment #1 from Basile-z <b2.temp at gmx.com> ---
In theory underscores should throw when found in an argument of `to!float`.
This other issue (https://issues.dlang.org/show_bug.cgi?id=9797) was closed for
the rationale that is that std.conv.to is not made to handle special D flavors
of number literals but is rather a generic handler.
Note that octal and hexString handle underscores for another reason, that is
that they were made specifically to replace literals.
--
More information about the Digitalmars-d-bugs
mailing list