DIP61: Add namespaces to D

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Sat Apr 26 03:20:29 PDT 2014


Walter Bright:

> http://wiki.dlang.org/DIP61
>
> Best practices in C++ code increasingly means putting functions 
> and declarations in namespaces. Currently, there is no support 
> in D to call C++ functions in namespaces. The primary issue is 
> that the name mangling doesn't match. Need a simple and 
> straightforward method of indicating namespaces.

In understand that in some cases it could be important to 
interface C++ code with D.

But I prefer an ugly-looking feature that will be used only to 
call C++ functions in namespaces, and not for general D 
programming. So you will not see D code that looks like C++.

Bye,
bearophile


More information about the Digitalmars-d mailing list