A strange div bug on Linux x86_64, (both dmd & ldc2): long -5000 / size_t 2 = 9223372036854773308
newshound2 at digitalmars.com
Thu Aug 13 23:47:30 UTC 2020
On 8/13/2020 3:27 PM, mw wrote:
> For users / applications that do value correctness more than performance, can we
> have a compiler switch which turn all the types & operations (e.g. in modules,
> that users also specified on command-line) into core_checkedint or
> std_experimental_checkedint *automatically*?
The thing about checkedint is there are several different behaviors one might
choose as responses to overflow. There is no one-size-fits-all, if we did pick
one we'll inevitably have complaints.
checkedint is really a nice package. I encourage you to check it out.
More information about the Digitalmars-d