No we should not support enum types derived from strings

Walter Bright newshound2 at digitalmars.com
Sun May 9 02:57:42 UTC 2021


On 5/7/2021 7:16 AM, Paul Backus wrote:
> "Is a string type" and "is implicitly convertible to a string type" are not the 
> same thing.

Language lawyer point:

An enum can be implicitly converted to its base type, but it's a match level 2:

https://dlang.org/spec/function.html#function-overloading

(Agreeing with Paul)


More information about the Digitalmars-d mailing list