[OT] The Usual Arithmetic Confusions

Paul Backus snarwin at gmail.com
Thu Feb 3 21:08:47 UTC 2022


On Thursday, 3 February 2022 at 20:56:04 UTC, Dukc wrote:
> On Thursday, 3 February 2022 at 18:07:43 UTC, Ola Fosheim 
> Grøstad wrote:
>>
>> I advocated trapping overflows except where you explicitly 
>> disable it.
>
> I don't know if you meant to do it the C++ way (unsigned 
> overflows normally, signed may do anything on overflow), or 
> some other way.

I assume "trapping overflows" means something like GCC's 
`-ftrapv`, where integer overflow causes the program to crash.


More information about the Digitalmars-d mailing list