[dmd-beta] dmd 1.062 and 2.047 beta

Andrei Alexandrescu andrei at erdani.com
Thu Jun 10 09:01:13 PDT 2010


On 06/10/2010 10:17 AM, Don Clugston wrote:
> And to clarify -- the reason is that the specialisation of startsWith
> for ranges of characters, was removed from std.algorithm.

Actually it was the return type which I made uint. Now I fixed things by 
making the return type bool if you're only looking for one item.

What I did remove was startFirst mixing ranges and individual characters:

startsWith("abc", 'a', "ab")

does not work. The previous implementation accepted the call but it was 
buggy. I don't know how to make it work reasonably.


Andrei


More information about the dmd-beta mailing list