Summary: Private has no effect on types in modules
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from Andrej Mitrovic <> 2011-06-19 
17:36:05 PDT ---

module foo;

    int x;
    class Foo {}

module main;

import foo;

void main() 
    // x = 5; // Error: module main foo.x is private
    auto foo = new Foo();  // accepted!!

Currently I have a problem with clashing symbols between
std.concurrency.MessageBox which is a private class and the Windows bindings
win32.winuser.MessageBox, which is a public function. It's a very commonly used
function btw. My workaround is this after the last import:

alias win32.winuser.MessageBox MessageBox;

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to