The case for integer overflow checks?

Jonathan M Davis newsgroup.d at jmdavisprog.com
Mon Sep 18 14:36:35 UTC 2017


On Monday, September 18, 2017 08:35:44 Ola Fosheim Grøstad via Digitalmars-d 
wrote:
> On Monday, 18 September 2017 at 08:27:21 UTC, Jonathan M Davis
>
> wrote:
> > There also really isn't a need to do so.
>
> If there was no need then C/C++ compilers wouldn't provide it as
> an option…

We have std.experimental.checkedint, so why would there be any need for it
to be in the compiler? The library solution provides the functionality and
does so in a much more flexible manner than the compiler reasonably could.

- Jonathan M Davis




More information about the Digitalmars-d mailing list