[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 15:50:43 PDT 2015


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

--- Comment #18 from Ali Cehreli <acehreli at yahoo.com> ---
I think this boils down to whether an enum's conversion to its base type is an
implicit cast (an rvalue), versus the enum itself (an lvalue). (Steven says
it's the latter.)

Also, does anyone know what bug fix this was originally about? Perhaps that bug
was invalid?

Ali

--


More information about the Digitalmars-d-bugs mailing list