[Issue 15526] provide a way to ignore underscores for parsing integers
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Oct 29 19:25:32 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=15526
Chris Piker <matrix-magma-cloak at duck.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |matrix-magma-cloak at duck.com
--- Comment #5 from Chris Piker <matrix-magma-cloak at duck.com> ---
Just wanted to bring attention to this issue, since it hasn't been mentioned in
a while and I ran into it yesterday. The lack of symmetry between the calls:
double d = to!double("1_000_000");
int i = to!int("1_000_000");
was surprising. I presume this wasn't the original intent, since it's good to
avoid surprises in API.
--
More information about the Digitalmars-d-bugs
mailing list