'int' is enough for 'length' to migrate code from x86 to x64
Daniel Murphy via Digitalmars-d
digitalmars-d at puremagic.com
Fri Nov 21 11:34:11 PST 2014
"Andrei Alexandrescu" wrote in message
news:m4nn38$1lau$2 at digitalmars.com...
> What is your point? (Honest question.)
That using signed integers exclusively eliminates one class of bugs, while
making another class only marginally more likely.
> Are you proposing that we make all array lengths signed?
No, I think that ship has sailed. But I recommend avoiding unsigned types
for general arithmetic.
More information about the Digitalmars-d
mailing list