https://issues.dlang.org/show_bug.cgi?id=14519
bearophile_h...@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_h...@eml.cc --- Comment #8 from bearophile_h...@eml.cc --- (In reply to Walter Bright from comment #0) > Changing foreach to return replacementDchar on invalid UTF encodings fixes > these problems, and makes it possible to do faster loops. Another solution is to deprecate foreach iteration on strings, and require something like "foreach(c; mystring.byCharThrowing)" and similar things. --