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

David Eagen via Digitalmars-d digitalmars-d at puremagic.com
Tue Nov 18 09:59:04 PST 2014


Isn't the purpose of size_t is to be large enough to address all 
available memory? A negative value is not only too small but 
doesn't make sense when discussing lengths.

Correctness requires using size_t.



More information about the Digitalmars-d mailing list