[Issue 7961] Add support for C++ namespaces

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 9 23:57:36 PST 2013


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



--- Comment #5 from Lionello Lunesu <lio+bugzilla at lunesu.com> 2013-11-09 23:57:31 PST ---
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > How do you plan to do it on win32?
> > 
> > https://en.wikipedia.org/wiki/Visual_C%2B%2B_name_mangling
> 
> I mean, how do you plan to implement this given that on win32, C++ name
> mangling is done by the dmc backend code rather than in the frontend like all
> other platforms.

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?

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

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.

-- 
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