Specifying C++ symbols in C++ namespaces

Mason McGill mmcgill at caltech.edu
Fri Apr 4 11:42:34 PDT 2014


On Friday, 4 April 2014 at 12:34:15 UTC, Dicebot wrote:
> Late to the thread, my short opinion:
>
> extern(C++ namespace::path) looks best. It should only affect 
> mangling and have no impact on fully qualified name on D side. 
> Most KISS solution I have read in the thread.

I actually remember almost trying this syntax before reading this 
thread.  It's definitely intuitive, and it KIS.  Though, may I 
suggest

extern(C++, namespace::path) or
extern(C++, namespace, path)

keeping in line with __traits and pragma?


More information about the Digitalmars-d mailing list