News for hackers. Stuff that matters.
Re:How expensive is integer-overflow trapping in C++? by amelius on Thursday September 24, 2020 @05:28AM (#24576840)
Perhaps we can have both. E.g.

    __checked__ int a;           // aborts on overflow
    __throwing_checked__ int b;  // throws exception on overflow
You could have the same syntax for unsigned ints.
Re:How expensive is integer-overflow trapping in C++? by mhh__ on Thursday September 24, 2020 @06:06AM (#24577046)
D has checkedint which does this cleanly in a template