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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 22 06:35:38 PST 2013


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


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com


--- Comment #3 from yebblies <yebblies at gmail.com> 2013-11-23 01:35:37 EST ---
(In reply to comment #2)
> 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
> -----

I don't think we can have both.

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


More information about the Digitalmars-d-bugs mailing list