Some algorithms on immutable data: bug 5134?

biozic dransic at free.fr
Thu Nov 25 05:03:58 PST 2010


Hello.
This leads to a compilation error:

import std.algorithm;
void main() {
     string foo = "foo";
     immutable string bar = "bar";
     auto f = foo.endsWith("o");
     auto b = bar.endsWith("r"); // ERROR cannot deduce template...
}

Same with startsWith. Is this related to issue #5134? or am I missing 
somthing?
Thanks
Nicolas


More information about the Digitalmars-d mailing list