On 11/21/2014 1:01 AM, Matthias Bentrup wrote:
C# has the checked and unchecked operators (http://msdn.microsoft.com/en-us/library/khy08726.aspx), which allow the programmer to specify if overflows should wrap of fail within an arithmetic expression. That could be a useful addition to D.
D already has them: https://github.com/D-Programming-Language/druntime/blob/master/src/core/checkedint.d