Odd behaviour of std.range

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Feb 22 17:33:18 UTC 2022


On Tue, Feb 22, 2022 at 05:25:18PM +0000, frame via Digitalmars-d-learn wrote:
> On Tuesday, 22 February 2022 at 13:25:16 UTC, bauss wrote:
> 
> > Welcome to the world of auto decoding, D's million dollar mistake.
> 
> Well, I think it's ok for strings but it shouldn't do it for simple
> arrays
[...]

In D, a string *is* an array. `string` is just an alias for
`immutable(char)[]`.


T

-- 
Gone Chopin. Bach in a minuet.


More information about the Digitalmars-d-learn mailing list