[Submission] D Slices

Simen Kjaeraas simen.kjaras at gmail.com
Tue May 31 12:01:12 PDT 2011


On Tue, 31 May 2011 20:29:51 +0200, KennyTM~ <kennytm at gmail.com> wrote:

> If your program needs an array of 4 billion elements (2e+19 elements on  
> 64-bit system), you're programming it wrong.

Not true. (for 32 bits) True for simple arrays, yes. Not for other ranges
that may e.g. lazily read files.

That said, if you do that, you really, really should consider using longs
instead of ints.

-- 
   Simen


More information about the Digitalmars-d mailing list