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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 26 01:22:29 PST 2013


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



--- Comment #13 from Jonathan M Davis <jmdavisProg at gmx.com> 2013-11-26 01:22:22 PST ---
>> e is an int

> Certainly not! This is like saying struct are just void[].

The base type of E is int. void[] is not the base type of anything. The two are
completely different, though it's true that e is not _exactly_ an int.

Regardless, the point is that it's ridiculous to consider enum values to be in
the name scope of anything other than the enum that they belong to. Having them
be in the name scope of a variable of the enum's type makes no sense.

-- 
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