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

Walter Bright newshound2 at digitalmars.com
Fri Nov 5 21:39:43 UTC 2021


On 11/5/2021 5:38 AM, max haughton wrote:
> I have never ever seen someone use a static array by mistake, is what I meant,

I didn't mean by mistake. I mean using it as a matter of convenience.

 > since you still  want a constant length buffer but want iterators etc..

This is why D has special support for turning arrays seamlessly into ranges. An 
early goal of D is to encourage use of [ ], rather than deprecate it.


More information about the Digitalmars-d mailing list