https://issues.dlang.org/show_bug.cgi?id=17188
Rainer Schuetze <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from Rainer Schuetze <[email protected]> --- As qsort is @system anyway, the callback does not have to guarantee anything. To still be able to pass a function with scope parameters, how about overloading it with both variants: alias int function(scope const void*, scope const void*) _scope_compare_fp_t; alias int function(const void*, const void*) _compare_fp_t; void qsort(scope void* base, size_t nmemb, size_t size, _scope_compare_fp_t compar); void qsort(scope void* base, size_t nmemb, size_t size, _compare_fp_t compar); --
