[OT] The Usual Arithmetic Confusions

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Mon Jan 31 08:38:28 UTC 2022


On Monday, 31 January 2022 at 07:33:00 UTC, Elronnd wrote:
> I have no doubt it comes up _at all_.  What I am asking is that 
> I do not believe it has an _appreciable_ effect on any real 
> software.

Not if you work around it, but ask yourself: is it a good idea to 
design your language in such a way that the compiler is unable to 
remove this:

```
if (x < x + 1) { … }
```

Probably not.




More information about the Digitalmars-d mailing list