dmd foreach loops throw exceptions on invalid UTF sequences, use replacementDchar instead

Dukc ajieskola at gmail.com
Thu Nov 4 13:09:12 UTC 2021


On Thursday, 4 November 2021 at 02:34:54 UTC, Adam D Ruppe wrote:
>
> I agree it is a good idea. If you want an exception, it is easy 
> enough to just check it in the loop and throw then.
>
> Let's do it.

Plus the present is inconsistent with rest of the language 
features. Implicit language-level conversions in D do not usually 
throw.


More information about the Digitalmars-d mailing list