[Issue 14269] Enum is not implicitly converted to base type when using ref

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Mar 10 08:40:53 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14269

bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc

--- Comment #11 from bearophile_hugs at eml.cc ---
(In reply to Jonathan M Davis from comment #10)
> Personally, I think that all operations that the compiler can't guarantee
> will result in a valid enum value for an enum type should result in the base
> type of the enum rather than the enum type - without that, stuff like final
> switch is completely broken - but there's definitely dissent on that, and
> it's been argued about in the newsgroup.

I agree with Jonathan, of course. Fixing final switch is important.

--


More information about the Digitalmars-d-bugs mailing list