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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 27 18:12:39 PST 2013


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



--- Comment #14 from Walter Bright <bugzilla at digitalmars.com> 2013-11-27 18:12:35 PST ---
> it actually prevents us from overloading on static-ness

I don't agree with static meaning that something goes into some separate
namespace, and I believe it is an advantage to the class designer to be able to
refactor things in and out of static without breaking user code.

It is not the instance that determines which names are visible, it is the type.

The scoping rules are straightforward, and I believe that trying to fix them
for all sorts of special cases is just going to cause more problems, not the
least of which is greatly expanded documentation attempting to explain it.

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