Odd behaviour of std.range

bauss jj_1337 at live.dk
Tue Feb 22 13:25:16 UTC 2022


On Tuesday, 22 February 2022 at 12:48:21 UTC, frame wrote:
> What am I missing here? Is this some UTF conversion issue?
>
> ```d
> string a;
> char[] b;
>
> pragma(msg, typeof(a.take(1).front)); // dchar
> pragma(msg, typeof(b.take(1).front)); // dchar
> ```

Welcome to the world of auto decoding, D's million dollar mistake.


More information about the Digitalmars-d-learn mailing list