Specifying C++ symbols in C++ namespaces
Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Sat Apr 5 01:42:25 PDT 2014
On Friday, 4 April 2014 at 22:17:45 UTC, Dicebot wrote:
> #2 should not compile. D currently does not have any notion of
> namespaces other than modules / aggregates and I am against
> introducing those just for the sake of interfacing with C++.
If you want to interface with C++ you should do it well or not at
all. In C++ namespace names reside in their own namespace which
means that you get short names like "std", "qt" etc. Which in
turn means you have to rename those to "CPPstd", "CPPqt" etc in D
in order to disambiguate the symbols. Having a dedicated
namespace operator would be a lot more convenient.
More information about the Digitalmars-d
mailing list