No we should not support enum types derived from strings
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Mon May 10 04:12:42 UTC 2021
On 5/9/21 5:04 AM, Walter Bright wrote:
> 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
Problem being of course that there's no UDT String type, only the crappy
immutable(char)[].
More information about the Digitalmars-d
mailing list