'int' is enough for 'length' to migrate code from x86 to x64

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Thu Nov 20 12:17:14 PST 2014


On Thursday, 20 November 2014 at 15:55:21 UTC, H. S. Teoh via
Digitalmars-d wrote:
> Using unsigned types for array length doesn't necessarily lead 
> to subtle
> bugs, if the language was stricter about mixing signed and 
> unsigned
> values.
>

Yes, I think that this is the real issue.


More information about the Digitalmars-d mailing list