DIP61: Add namespaces to D

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sat Apr 26 02:31:51 PDT 2014


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.


More information about the Digitalmars-d mailing list