[Issue 5069] No missing extern(C) error
http://d.puremagic.com/issues/show_bug.cgi?id=5069 --- Comment #3 from bearophile_h...@eml.cc 2011-09-02 04:01:25 PDT --- 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*)) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 5069] No missing extern(C) error
http://d.puremagic.com/issues/show_bug.cgi?id=5069 --- Comment #4 from yebblies yebbl...@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: ---
[Issue 5069] No missing extern(C) error
http://d.puremagic.com/issues/show_bug.cgi?id=5069 --- Comment #5 from bearophile_h...@eml.cc 2011-09-02 10:13:59 PDT --- (In reply to comment #4) I agree. Is there an enhancement request already open for this? bug 6596 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---