www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15578] New: Should have access to namespace private symbols

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 puremagic.com
          Reporter: bugzilla 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
  }

--
Jan 18