[Issue 7925] extern(C++) delegates?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 4 08:28:26 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=7925
Manu <turkeyman at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |C++, industry
--- Comment #1 from Manu <turkeyman at gmail.com> ---
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.
--
More information about the Digitalmars-d-bugs
mailing list