[Issue 22993] Missing quotes in octal literal hint
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 7 05:20:52 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22993
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #13958 "Fix 22993 - Suggest string overload of
std.conv.octal" was merged into stable:
- d89e3f5ad2bd2fc5a988300e40cd2c3e14d1de02 by MoonlightSentinel:
Fix 22993 - Suggest string overload of std.conv.octal
The previously suggested integer overload has two drawbacks. The literal
parsed as base 10 and hence can overflow for larger values that are only
valid in base 8. It also requires additional CTFE because it converts
the value to string.
So add quotes to the literal in the error message to suggest the string
overload.
https://github.com/dlang/dmd/pull/13958
--
More information about the Digitalmars-d-bugs
mailing list