On Sat, Apr 26, 2014 at 04:32:29PM -0700, Walter Bright via Digitalmars-d wrote: > Since the namespace keyword doesn't seem to be gaining much traction, > an alternative syntax would be: > > extern (C++, N.M) { void foo(); } > > which would be semantically equivalent to the previous: > > extern (C++) namespace N { namespace M { void foo(); }}
Much better! This clearly ties it to C++ compatibility, so there's no chance of unintentional misuse in native D code. And it doesn't waste a D keyword on C++ compatibility. T -- If I were two-faced, would I be wearing this one? -- Abraham Lincoln