dmd foreach loops throw exceptions on invalid UTF sequences, use replacementDchar instead
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Mon Nov 8 22:29:40 UTC 2021
On Monday, 8 November 2021 at 22:12:15 UTC, max haughton wrote:
> In my post I was referring to a C style array (in C++) rather
> than a D slice, to be clear. It's entirely possible Walter
> originally meant a slice, but the point about following the
> syntactic path of least resistance seem to be referring to a []
> in C++ rather than a slice i.e. I was intending to get across
> that I've never seen someone making this mistake in practice
> (either using a mere [] to pass data around, or using a vector
> in place of a static array / vice versa )
Could happen in C. Does not happen in C++, you use std::span for
passing around data.
More information about the Digitalmars-d
mailing list