[Issue 20479] octal integer literals don't work with BetterC mode

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 4 15:48:57 UTC 2020


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

Dominikus Dittes Scherkl <dominikus at scherkl.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dominikus at scherkl.de

--- Comment #1 from Dominikus Dittes Scherkl <dominikus at scherkl.de> ---
This is not D_as_better_C specific.
The octal template requires a string as template-parameter, because any other
type would have already been interpreted as a decimal (e.g. decimal 167 would
be converted to octal 347 which is very unexpected).

So I think this bug report is invalid. String is necessary.

--


More information about the Digitalmars-d-bugs mailing list