Specifying C++ symbols in C++ namespaces
bearophile
bearophileHUGS at lycos.com
Sat Apr 5 16:42:22 PDT 2014
Michel Fortin:
> Here's a suggestion:
>
> @namespace A.B { // can create two levels at once, yeah!
> void foo();
> void bar();
> }
> @namespace C {
> void foo();
> }
>
> Make those C++ declarations, it does not look too foreign
> anymore:
>
> extern (C++) @namespace A.B {
> void foo();
> void bar();
> }
> extern (C++) @namespace C {
> void foo();
> }
I suggest to keep the access to C++ namespaces as a feature for
interoperability only, and to have no namespaces in D.
Bye,
bearophile
More information about the Digitalmars-d
mailing list