"Ellery Newcomer" <ellery-newcomer at utulsa.edu> wrote in message news:ihq1pm$2d2v$1 at digitalmars.com... > > OT: this function confuses me: > > string s = readln(terminator); > foreach (wchar c; s) //// <----- (?!) Automatically converts s from string to wstring and iterates over the wchars. It should be dchar, though, not wchar.