Major performance problem with std.array.front()

Dmitry Olshansky dmitry.olsh at gmail.com
Fri Mar 7 01:56:28 PST 2014


07-Mar-2014 07:22, bearophile пишет:
> Walter Bright:
>
>> You use ranges a lot. Would it break any of your code?
>
> I need to try the changes to be sure. But the magnitude of this change
> is so large that I guess some code will surely break.
>
> One advantage of your change is that this code will work:
>
> auto s = "hello".dup;
> s.sort();

Which it shouldn't unless there is an ascii type or some such.

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list