'int' is enough for 'length' to migrate code from x86 to x64
Matthias Bentrup via Digitalmars-d
digitalmars-d at puremagic.com
Wed Nov 19 07:19:32 PST 2014
On Wednesday, 19 November 2014 at 14:04:16 UTC, Don wrote:
> No. The point is to get correct semantics. Unsigned types do
> not have the correct semantics. Signed types do.
>
In D both signed and unsigned integers have defined wrapping
semantincs. In C++ signed integers are allowed to format your
harddisk on overflow.
More information about the Digitalmars-d
mailing list