[Issue 7236] Protected class members in different file inaccessible

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 3 16:52:55 PST 2013


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


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla at digitalmars.com
         Resolution|                            |INVALID


--- Comment #6 from Walter Bright <bugzilla at digitalmars.com> 2013-02-03 16:52:52 PST ---
This is exactly the way it is designed to work. Accessibility is determined by
the 'this' pointer, not the function it is in (C++ operates the same way). And,
of course, code in a module has all access to other classes in the same module.

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