Static arrays and std.algorithm.sort

D Apprentice j at teamraging.com
Thu Feb 20 09:34:36 PST 2014


On Thursday, 20 February 2014 at 17:29:44 UTC, Stanislav Blinov
wrote:
> On Thursday, 20 February 2014 at 17:24:55 UTC, D Apprentice 
> wrote:
>
>> This works, but I'm curious if there's another (better) way?
>
> 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.

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

Thank you for your reply.


More information about the Digitalmars-d-learn mailing list