Can Enums be integral types?

Manfred Nowak svv1999 at hotmail.com
Wed Apr 20 04:35:00 UTC 2022


On Sunday, 17 April 2022 at 18:25:32 UTC, Bastiaan Veelo wrote:
> The reason is in [17.1.5](https://dlang.org/spec/enum.html): 
> “EnumBaseType types cannot be implicitly cast to an enum type.”

Thy. That's the anchor in the specs preventing Enums to be 
integral types.




More information about the Digitalmars-d-learn mailing list