[phobos] std.array.ilength

Andrei Alexandrescu andrei at erdani.com
Thu Feb 17 16:23:18 PST 2011


On 2/17/11 5:58 PM, David Simcha wrote:
> Such a statement is technically correct but amazingly pedantic in a
> world where there is legacy code in other languages, crufty old D code
> from before there was a 64-bit compiler to test it on, and the need to
> optimize storage sometimes, but not too many billion element arrays. If
> anyone has *ever in their entire life* worked with an array with over 2
> billion elements (which would demonstrate that the unsafeness isn't
> purely theoretical), please speak up.

I do work with arrays over 2 billion elements. But my point is simpler: 
I don't need to prove anything - you need to prove that working with 
size_t aggravates you, and very frequently.

Andrei


More information about the phobos mailing list