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.
BTW, can't we just handle this automatically in a tool like
DStep, with the help of pragma(mangle).
--
/Jacob Carlborg