[Issue 7961] Add support for C++ namespaces

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 10 00:14:51 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=7961



--- Comment #6 from yebblies <yebblies at gmail.com> 2013-11-10 19:14:48 EST ---
(In reply to comment #5)
> 
> Oh, you're way ahead on me on that one. I had not noticed the difference. But
> since the code is available for both, it should be possible to do, one way or
> the other. Any ideas?
> 

https://github.com/D-Programming-Language/dmd/pull/2074

Or possibly, adapting the code in there to use the existing mangling interface,
and not rely on https://github.com/D-Programming-Language/dmd/pull/2356

> Or perhaps it's time to make win32 more like win64. And get rid of optlink in
> the process :)
> 

Yeah I'd stay away from that mess.

> What we have to decide first, though, is how to declare the namespaces in D.
> UDA?
> 
> I don't think we should be using the module name, since that's completely
> unrelated in C++ and D. Declaring functions as statics in a struct could work,
> but would conflict with actual nested methods.

pragma(cpp_namespace, "blah") ...

pragma(cpp_namespace, "blah", "nested") ...
or maybe
pragma(cpp_namespace, ["blah", "nested"]) ...

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list