On Thursday, 3 April 2014 at 01:06:25 UTC, Walter Bright wrote:
Because C++ mangles static member functions of structs differently from members of namespaces.

What i meant is not static functions and members of a struct, but a static struct as a concept of a struct, whith can only contain a static stuff. C++ has no such concept, but essentually static struct === namespace.
Consider this:

extern(C++) static struct A {
    static struct B {
        struct X {}
        int foo(X);
    }
}

A.B.foo(A.B.X());

Reply via email to