[Issue 19260] extern(C++) `T* const` mangling

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 29 21:34:21 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19260

--- Comment #3 from kinke at gmx.net ---
I don't think there's a need for a proper solution for this on the D side:

1) `T* const` is rare in my experience.
2) This `const` affecting the C++ mangle is a big mistake IMO. The caller can't
care less about it, it's just an implementation detail of the callee (not gonna
mutate the param, i.e., my private pointer copy) leaking to the outside world
and causing issues like this.

--


More information about the Digitalmars-d-bugs mailing list