TDPL bug or phobos bug?

2010-11-15 Thread flyinghearts
Page 8, in the example: import std.stdio, std.string; void main() { uint[string] dictionary; foreach (line; stdin.byLine()) { // Break sentence into words // Add each word in the sentence to the vocabulary foreach (word; splitter(strip(line))) { if (word in dictionary) continue;

A bug with matching overloaded functions?

2010-12-01 Thread flyinghearts
void check(string s) {} void check(wstring s) {} void check(dstring s) {} void main() { check("test"); //check("test"c); } D:\Desktop\d\zb.d(7): Error: function zb.check called with argument types: ((string)) matches both: zb.check(string s) and: zb.check(immutable(d