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)

Re: TDPL bug or phobos bug?

2010-11-15 Thread Andrei Alexandrescu
On 11/15/10 7:31 AM, flyinghearts wrote: 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;