Giving up
kdevel
kdevel at vogtner.de
Fri Aug 5 16:03:06 UTC 2022
Hi Rumbu,
I appreciate your work.
On Friday, 5 August 2022 at 15:36:06 UTC, Rumbu wrote:
> [...]
> The last issues are generated by unpublished changes in the
> parser:
>
> Examples:
>
> ```
> float z = 85886696878585969769557975866955695.E0; //integer
The latest compiler here on my local machine is 2.073.2 of 2017
(?):
```
$ dmd --version
DMD64 D Compiler v2.073.2
Copyright (c) 1999-2016 by Digital Mars written by Walter Bright
$ cat e0.d
unittest {
float z = 85886696878585969769557975866955695.E0; //integer
overflow, I don't see any int
real x = 0x1p-16383; //number `0x1p-16383` is not
representable. It is, trust me.
}
$ dmd e0
e0.d(2): Error: integer overflow
e0.d(3): Error: number '0x1p-16383' is not representable
```
More information about the Digitalmars-d-announce
mailing list