D.gnu - gdc 0.23 private class in a module can be export
- Yuki (24/24) Apr 25 2007 Hello ,I have found a "bug" in gdc 0.23.When putting a private class in ...
Hello ,I have found a "bug" in gdc 0.23.When putting a private class in a module .the class can be "seem" in another module . Example code : //aa.d module aa; import std.stdio; private class AA { void func () { writefln("Hello"); } } // hello.d import aa; int main(char[][] args) { AA a = new AA(); a.func(); return 0; } The example can be comopiled and linked without any warning or error.I think it is a bug in gdc. Thanks.
Apr 25 2007