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

Manu <[email protected]> changed:

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

--- Comment #1 from Manu <[email protected]> ---
As in https://issues.dlang.org/show_bug.cgi?id=18928, we have observed that C++
and D method calling convention is different (RVO expectations don't match).
This means delegates need to know their calling convention, otherwise they will
call incorrectly for the function that's assigned to them.
I suggest `extern(C++) delegate` which would guarantee the delegate uses the
appropriate C++ calling convention.

--

Reply via email to