[Issue 7925] New: extern(C++) delegates?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 16 09:07:29 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7925

           Summary: extern(C++) delegates?
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: turkeyman at gmail.com


--- Comment #0 from Manu <turkeyman at gmail.com> 2012-04-16 09:08:19 PDT ---
I really need a mechanism to perform C++ 'thiscall' calls. I think extern(C++)
delegates seem the obvious way to do it in D.

The implementation would be nothing more than marked delegates simply calling
with the 'thiscall' convention. I don't think it would have any affect at all
on language semantics.

Without such a feature, I currently use proxy functions on both sides of the
language barrier, which are a pain to maintain and very annoying when debugging
(step in).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list