[Issue 15578] New: Should have access to namespace private symbols from same module
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Mon Jan 18 00:43:28 PST 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15578
          Issue ID: 15578
           Summary: Should have access to namespace private symbols from
                    same module
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: bugzilla at digitalmars.com
private:
    int j;
    extern(C++, ns) int k;
  void f()
  {
    j = 0; // works as expected
    k = 0; // Error: variable foo.ns.k is private
  }
--
    
    
More information about the Digitalmars-d-bugs
mailing list