www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7925] New: extern(C++) delegates?

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 puremagic.com
        ReportedBy: turkeyman gmail.com



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: -------
Apr 16 2012