[Issue 6180] Private has no effect on types in modules

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 5 18:15:43 PDT 2012


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



--- Comment #10 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-09-05 18:16:11 PDT ---
> It shouldn't be. The summary obviously describes horribly broken behaviour.

It describes how it works in C++ which is exactly how it works in D. It's that
way by design, and anything else would require that the language be changed.

What many have argued for is that private symbols should be hidden (or at least
not be considered in overload resolution when not accessible or otherwise cause
conflicts with accessible symbols), which I think would be a major improvement,
but that's not the way that it currently works or is ever expected to work
unless you can convince Walter to change it.

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