April 25, 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.