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

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 21 07:52:15 PST 2014


On 11/21/14 12:56 AM, Daniel Murphy wrote:
> "Walter Bright"  wrote in message news:m4mua1$shh$1 at digitalmars.com...
>
>> Presumably read() will throw if the size is larger than it can handle.
>> If it doesn't, this code is not buggy, but read() is.
>
> You're right, but that's really not the point.

What is your point? (Honest question.) Are you proposing that we make 
all array lengths signed? -- Andrei


More information about the Digitalmars-d mailing list