[Bug 143] New: 'package' does not work at all
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed May 17 15:28:07 PDT 2006
    
    
  
http://d.puremagic.com/bugzilla/show_bug.cgi?id=143
           Summary: 'package' does not work at all
           Product: D
           Version: 0.156
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: jarrett.billingsley at gmail.com
It doesn't work.  I've tried so many things.  It never prevents any kind of
access.
Assume the following directory structure:
/proj/test.d
/proj/modules/foo.d
And the files:
[test.d]
module test;
import modules.foo;
void main()
{
    writefln(x);
}
[foo.d]
module modules.foo;
package int x = 5;
This happily compiles and runs, printing 5.
I've tried multiple levels of directories/packages, different kinds of
declarations, moving the import file somewhere else.. nothing.
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list