DIP61: Add namespaces to D

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Sat Apr 26 04:57:46 PDT 2014


On Saturday, 26 April 2014 at 09:31:48 UTC, Walter Bright wrote:
> 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.
>
> There have been many proposals earlier:
>
>   http://forum.dlang.org/post/lhi1lt$269h$1@digitalmars.com
>
> but it seems to me that the simplest, most straightforward 
> approach would be better.
>
> As more and more people are attempting to call C++ libraries 
> from D, this is getting to be a more and more important issue.

I think this is a very bad proposal. Necessity to define 
namespaces for interfacing with C++ must not result in usage of 
namespaces of pure D code.


More information about the Digitalmars-d mailing list