[Issue 9930] enum members should be hidden in an enum instance

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 3 10:03:20 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9930



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-06-03 10:03:19 PDT ---
To make sure Issue 10253 is implementable, I'd still like the following to work
(which currently does):

-----
enum E
{
    A,
    B
}

struct S
{
    E e;
    alias e this;
}

auto x = S.A;  // equivalent to S.e.A, or E.A
-----

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list