Summary: Error on passing delegate to C linkage function.
           Product: D
           Version: 1.057
          Platform: x86
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Adam Chrapkowski <> 2010-06-06 
09:24:38 PDT ---
Error occurs, when you try to use a delegate as a parameter to a C linked

extern (C)
void c_func(void delegate() dg);
void d_func(void delegate() dg) { c_func(dg); }

Error: function test.c_func (void delegate()) does not match parameter types
(void delegate())
Error: cannot implicitly convert expression (dg) of type void delegate() to
void delegate()

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to