[Bug 48] New: Acess with Fully-Qualified Names disregards protection attributes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 14 09:17:49 PST 2006


http://d.puremagic.com/bugzilla/show_bug.cgi?id=48

           Summary: Acess with Fully-Qualified Names disregards protection
                    attributes
           Product: D
           Version: 0.149
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: daiphoenix at lycos.com


Consider:
----- moduleFoo.d -----
  module moduleFoo;

  private void privateFunc() {}

Then in another module, accessing that entity with a fully qualified name will
disregard it's protection attribute:
----- ... -----
  void func() {
    privateFunc();           // Compile error, correct
    moduleFoo.privateFunc(); // Compile ok   , incorrect!
  }


-- 




More information about the Digitalmars-d-bugs mailing list