No we should not support enum types derived from strings

Walter Bright newshound2 at digitalmars.com
Sun May 9 09:04:23 UTC 2021


On 5/7/2021 7:05 PM, Andrei Alexandrescu wrote:
> String s;
> func1(s.bytes);
> func2(s.dchars);

Already done:

s.byCodeUnit
s.byChar
s.byWchar
s.byDchar
s.byUTF

https://dlang.org/phobos/std_utf.html


More information about the Digitalmars-d mailing list