Thread overview
[Issue 19161] Wrong mangle for C++ classes
Aug 21, 2018
Nicholas Wilson
Apr 12, 2019
kinke@gmx.net
Feb 19, 2020
Mathias LANG
August 12, 2018
https://issues.dlang.org/show_bug.cgi?id=19161

Илья Ярошенко <ilyayaroshenko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |C++, mangling

--
August 21, 2018
https://issues.dlang.org/show_bug.cgi?id=19161

Nicholas Wilson <iamthewilsonator@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |iamthewilsonator@hotmail.co
                   |                            |m

--- Comment #1 from Nicholas Wilson <iamthewilsonator@hotmail.com> ---
Does

extern(C++,class)
struct Foo
{

}

extern(C++) void foo(ref Foo);

pragma(msg, foo.mangleof);

work?

--
April 12, 2019
https://issues.dlang.org/show_bug.cgi?id=19161

--- Comment #2 from Илья Ярошенко <ilyayaroshenko@gmail.com> ---
Yes, but this workaround breaks a lot of API logic on the D side.

--
April 12, 2019
https://issues.dlang.org/show_bug.cgi?id=19161

kinke@gmx.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke@gmx.net
                 OS|Windows                     |All

--- Comment #3 from kinke@gmx.net ---
There's no clear right or wrong here, and the proposed change would probably break a lot of code. E.g., all DMD C++ headers would need to be adapted. Additionally, a D class reference can safely be assumed to be null, while you normally don't expect null for a C++ reference. => WONTFIX IMO

--
February 19, 2020
https://issues.dlang.org/show_bug.cgi?id=19161

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |pro.mathias.lang@gmail.com
         Resolution|---                         |DUPLICATE

--- Comment #4 from Mathias LANG <pro.mathias.lang@gmail.com> ---
Duplicate of 18896 which has a bit more specific title.

*** This issue has been marked as a duplicate of issue 18896 ***

--