No we should not support enum types derived from strings

Paul Backus snarwin at gmail.com
Fri May 7 14:16:11 UTC 2021


On Friday, 7 May 2021 at 12:06:43 UTC, deadalnix wrote:
> On Friday, 7 May 2021 at 11:55:53 UTC, Andrei Alexandrescu 
> wrote:
>> Heavy toll on the infra for a very niche use case with trivial 
>> workarounds on the user side.
>
> It seems like the toll comes from isSomeString to return false 
> for these nums, no? What is the root cause of this not working?
>
> It doesn't seems like this should be a special case anywhere 
> and just work.

"Is a string type" and "is implicitly convertible to a string 
type" are not the same thing.


More information about the Digitalmars-d mailing list