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;
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