Sort trouble

Don nospam at nospam.com
Tue Apr 7 02:27:18 PDT 2009


bearophile wrote:
> Even just:
> 
> void main() {
>     auto a = new uint[10_000_000];
>     a.sort;
>     a.sort;
> }
> 
> Bye,
> bearophile

Confirmed. In fact, any size below 0x8F_FFFF works,
and any size >= 0x8F_FFFF fails. On DMD2.027 as well.

void main() {
     auto a = new uint[0x8F_FFFF]; // smallest size that fails
     a.sort;
     a.sort;
}


More information about the Digitalmars-d-learn mailing list