[Issue 1161] New: Access to private static members is allowed from other module.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 18 02:03:15 PDT 2007


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

           Summary: Access to private static members is allowed from other
                    module.
           Product: D
           Version: 1.012
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: aarti at interia.pl


-----------
module static_a;
import static_b;
void main() {
    Test.counter=5;
}
-----------
module static_b;
class Test {
private:
    static int counter=0;
}


-- 



More information about the Digitalmars-d-bugs mailing list