www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 880] New: private imports not honored

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=880

           Summary: private imports not honored
           Product: D
           Version: 1.001
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: tomas famolsen.dk


I would think this would fail, but it doesn't:

--------------------------
module c;
void f() {
}
--------------------------
module b;
import c;
--------------------------
module a;
import b;
void main() {
    c.f();
}
--------------------------

just using 'f()' instead of 'c.f()' works as it should giving the error:
'undefined identifier f'.


-- 
Jan 23 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=880


thomas-dloop kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE







*** This bug has been marked as a duplicate of 313 ***


-- 
Jan 24 2007