Is this reasonable?

H. S. Teoh hsteoh at quickfur.ath.cx
Thu Dec 5 11:35:17 PST 2013


On Thu, Dec 05, 2013 at 03:47:27PM -0300, Ary Borenszweig wrote:
[...]
> Cough, cough, make array length be an int.
> 
> Do you really need arrays that big? :-S
> 
> (I'm talking to Mr. D Compiler here)

A negative length array makes no sense.

Plus, being a systems language, D should be able to represent an entire
64-bit address space as an array of ubytes (even if this is rarely
done!). If one were to write a kernel in D, it would be laughable to use
signed array lengths.


T

-- 
Stop staring at me like that! It's offens... no, you'll hurt your eyes!


More information about the Digitalmars-d-learn mailing list