Forbidding implicit conversions from an enum type to an integer

Dennis dkorpel at gmail.com
Tue Apr 2 12:34:21 UTC 2019


On Tuesday, 2 April 2019 at 09:37:26 UTC, Per Nordlöw wrote:
> Are there any plans on deprecating implicit conversions of 
> enums to integers?

Not that I know of. Given the precedence of this:
https://github.com/dlang/DIPs/blob/master/DIPs/rejected/DIP1015.md
I doubt enum/integer-types are going to get stricter.

Is there a particular bug you encountered because of this 
conversion?


More information about the Digitalmars-d-learn mailing list