Comment #0 by default_357-line — 2018-02-28T13:28:23Z
Repro:
string s;
ubyte[] ub;
s ~= ub;
Expected:
For that to not work.
Actual:
It work.
Notes:
https://dlang.org/spec/type.html
ubyte: 8 bits
char: UTF-8 code unit
Many 8-bit numbers are not valid UTF-8 code points.
Comment #1 by default_357-line — 2018-02-28T13:33:15Z
Bonus round!
Works: s ~= ub;
Does not work: s = s ~ ub;
Comment #2 by robert.schadek — 2024-12-13T18:57:33Z