'int' is enough for 'length' to migrate code from x86 to x64
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Thu Nov 20 13:27:11 PST 2014
On 11/20/2014 6:22 AM, Ary Borenszweig wrote:
> Nobody is saying to remove unsigned types from the language. They have their
> uses. It's just that using them for an array's length leads to subtle bugs.
> That's all.
If that is changed to a signed type, then you'll have a same-only-different set
of subtle bugs, plus you'll break the intuition about these things from everyone
who has used C/C++ a lot.
More information about the Digitalmars-d
mailing list