[Issue 5069] No missing extern(C) error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 2 06:15:28 PDT 2011


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



--- Comment #4 from yebblies <yebblies at gmail.com> 2011-09-02 23:15:22 EST ---
(In reply to comment #3)
> With this fix:
> https://github.com/D-Programming-Language/dmd/commit/306df8eaa6f8a987f76f401a1e03d8edf1f1e2ae
> 
> Now DMD prints:
> 
> test.d(15): Error: function core.stdc.stdlib.qsort (void* base, uint nmemb,
> uint size, int C function(in const(void*), in const(void*)) compar) is not
> callable using argument types (int*,int,uint,int function(in const(void*), in
> const(void*)))
> test.d(15): Error: cannot implicitly convert expression (& compare) of type int
> function(in const(void*), in const(void*)) to int C function(in const(void*),
> in const(void*))
> 
> 
> Instead of:
> int C function(in const(void*), in const(void*))
> 
> I think this allows to see the C better:
> int extern(C) function(in const(void*), in const(void*))

I agree.  Is there an enhancement request already open for this?

-- 
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