https://issues.dlang.org/show_bug.cgi?id=14519

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #8 from [email protected] ---
(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.

--

Reply via email to