3 ms·
> D's string is not text by itself because it is an array of UTF-8 code units. Bytes. It's an array of bytes. D's char type isn't actually restricted to UTF-8
by tialaramex 4y ago
> D's string is not text by itself because it is an array of UTF-8 code units.
Bytes. It's an array of bytes. D's char type isn't actually restricted to UTF-8 code units, char x = '\xFF'; works just fine even though that's not UTF-8.
- acehreli 4y agoI see what you mean but array of bytes is something else in D: byte[].