immutable

Nick Sabalausky a at a.a
Wed Jan 26 13:04:16 PST 2011


"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.




More information about the Digitalmars-d mailing list