'int' is enough for 'length' to migrate code from x86 to x64
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Fri Nov 21 01:34:19 PST 2014
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
More information about the Digitalmars-d
mailing list