Re: D error messages for function call mismatches

2017-06-27 Thread FoxyBrown via Digitalmars-d
On Tuesday, 27 June 2017 at 15:01:41 UTC, Adam D. Ruppe wrote: On Tuesday, 27 June 2017 at 14:29:05 UTC, FoxyBrown wrote: D's error messaging is terrible in some ways. I am trying to get some code to work and this is the error: I agree, that error message is terrible, and that's why I have a

Re: D error messages for function call mismatches

2017-06-27 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 27 June 2017 at 14:29:05 UTC, FoxyBrown wrote: D's error messaging is terrible in some ways. I am trying to get some code to work and this is the error: I agree, that error message is terrible, and that's why I have a PR open to change it. But this specific case is weird to me to

Re: D error messages for function call mismatches

2017-06-27 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 27 June 2017 at 14:29:05 UTC, FoxyBrown wrote: D's error messaging is terrible in some ways. I am trying to get some code to work and this is the error: This PR will improve the situation: https://github.com/dlang/dmd/pull/6806

Re: D error messages for function call mismatches

2017-06-27 Thread tetyys via Digitalmars-d
On Tuesday, 27 June 2017 at 14:29:05 UTC, FoxyBrown wrote: arsd\stb_truetype.d(1246): Error: function core.stdc.stdlib.qsort (scope void* base, uint nmemb, uint size, extern (C) int function(scope const(void*), scope const(void*)) @system compar) is not callable using argument types (void*, in

D error messages for function call mismatches

2017-06-27 Thread FoxyBrown via Digitalmars-d
D's error messaging is terrible in some ways. I am trying to get some code to work and this is the error: arsd\stb_truetype.d(1246): Error: function core.stdc.stdlib.qsort (scope void* base, uint nmemb, uint size, extern (C) int function(scope const(void*), scope const(void*)) @system compar)