Why the hell doesn't foreach decode strings

Martin Nowak dawg at dawgfoto.de
Thu Oct 20 12:37:56 PDT 2011


It just took me over one hour to find out the unthinkable.
foreach(c; str) will deduce c to immutable(char) and doesn't care about  
unicode.
Now there is so many unicode transcoding happening in the language that it  
starts to get annoying,
but the most basic string iteration doesn't support it by default?


More information about the Digitalmars-d mailing list