[Issue 7236] Protected class members in different file inaccessible

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 4 11:16:12 PST 2013


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



--- Comment #7 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-02-04 11:16:08 PST ---
(In reply to comment #6)
> This is exactly the way it is designed to work. Accessibility is determined by
> the 'this' pointer, not the function it is in.

Perhaps, but it could be a future enhancement. I'm not sure about the pros vs
cons, maybe encapsulation would break under this enhancement. The damage seems
limited though.

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