Re: importing std.algorithm breaks std.string.count

2010-09-23 Thread Steven Schveighoffer
On Thu, 23 Sep 2010 02:19:55 -0400, Daniel Murphy wrote: "Steven Schveighoffer" wrote in message news:op.vi64pdhveav...@localhost.localdomain... Second, std.algorithm.count looks like this: size_t count(alias pred = "a == b", Range, E)(Range r, E value) if (isInputRange!(Range)) So, E can

Re: importing std.algorithm breaks std.string.count

2010-09-22 Thread Daniel Murphy
"Steven Schveighoffer" wrote in message news:op.vi64pdhveav...@localhost.localdomain... > Second, std.algorithm.count looks like this: > > size_t count(alias pred = "a == b", Range, E)(Range r, E value) if > (isInputRange!(Range)) > > So, E can be any type, completely unrelated to strings, I cou

Re: importing std.algorithm breaks std.string.count

2010-09-17 Thread Seth Hoenig
Submitted *Issue 4883 * On Fri, Sep 17, 2010 at 4:30 PM, Steven Schveighoffer wrote: > On Fri, 17 Sep 2010 17:15:31 -0400, Seth Hoenig > wrote: > > I have these two minimal programs: >> >> >> import std.string; >> void main() >> { >>stri

Re: importing std.algorithm breaks std.string.count

2010-09-17 Thread Steven Schveighoffer
On Fri, 17 Sep 2010 17:15:31 -0400, Seth Hoenig wrote: I have these two minimal programs: import std.string; void main() { string str = "abc"; int i = str.count("ab"); } and: import std.string; import std.algorithm; void main() { string str = "abc"; int i = str.count(

importing std.algorithm breaks std.string.count

2010-09-17 Thread Seth Hoenig
I have these two minimal programs: import std.string; void main() { string str = "abc"; int i = str.count("ab"); } and: import std.string; import std.algorithm; void main() { string str = "abc"; int i = str.count("ab"); } The only difference is line 2, where I import st