01777777777777777777777 [std.conv.octal]
kdevel
kdevel at vogtner.de
Wed Apr 6 20:27:10 UTC 2022
```
auto w = 01777777777777777777777;
```
```
Error: octal literals `01777777777777777777777` are no longer
supported, use `std.conv.octal!1777777777777777777777` instead
```
It's worth a try:
```
auto w = std.conv.octal!1777777777777777777777;
```
```
Error: integer overflow
```
Quote from `std/conv.d`:
```
template octal(alias decimalInteger)
if (is(typeof(decimalInteger)) &&
isIntegral!(typeof(decimalInteger)))
{
enum octal =
octal!(typeof(decimalInteger))(to!string(decimalInteger));
}
```
Does it *feel* wrong to you, too?
More information about the Digitalmars-d
mailing list