gdc 0.23 private class in a module can be export
Yuki
Yuki001 at gmail.com
Wed Apr 25 08:20:37 PDT 2007
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.
More information about the D.gnu
mailing list