On Wednesday, 2 April 2014 at 22:33:21 UTC, bearophile wrote:
Walter Bright:

Here's Andrei's proposal:

   extern (C++) template nspace() {
       int foo();
   }

I suggest to brainstorm the syntax some more time, because someone could be able to invent a better syntax.

Some seeds:

...
extern (C++)(nspace) {
    int foo();
}

extern (C++ nspace) {
    int foo();
}

Bye,
bearophile

I definitely like the last two. Small and to the point. But where nspace is a wrapper 'static struct' essentially.
So:

nspace.foo()

Reply via email to