Specifying C++ symbols in C++ namespaces
monnoroch
monnoroch at gmail.com
Wed Apr 2 18:34:25 PDT 2014
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());
More information about the Digitalmars-d
mailing list