Static arrays and std.algorithm.sort

Stanislav Blinov stanislav.blinov at gmail.com
Thu Feb 20 09:43:12 PST 2014


On Thursday, 20 February 2014 at 17:34:37 UTC, D Apprentice wrote:
> On Thursday, 20 February 2014 at 17:29:44 UTC, Stanislav Blinov
> wrote:

>> sort(a[]);
>
> That's still using the slice syntax though? I just reread the
> documentation and it says that slicing does not copy any data, 
> so
> there shouldn't be any issues with this method.

Yup.

> But I'm curious, are there any other known ways, or is
> this the only one?

No. To be honest, I'm not fully agreeing with sort(a) not working 
too, but it seems unlikely it'd be supported.

See http://d.puremagic.com/issues/show_bug.cgi?id=4114


More information about the Digitalmars-d-learn mailing list