Major performance problem with std.array.front()

Marc Schütz" <schuetzm at gmx.net> Marc Schütz" <schuetzm at gmx.net>
Sun Mar 9 06:51:11 PDT 2014


On Friday, 7 March 2014 at 16:43:30 UTC, Dicebot wrote:
> On Friday, 7 March 2014 at 16:18:06 UTC, Vladimir Panteleev
>> Can we look at some example situations that this will break?
>
> Any code that relies on countUntil to count dchar's? Or, to 
> generalize, almost any code that uses std.algorithm functions 
> with string?

This would no longer compile, as dchar[] stops being a range. 
countUntil(range.byCodePoint) would have to be used instead.


More information about the Digitalmars-d mailing list