https://issues.dlang.org/show_bug.cgi?id=17188

Martin Nowak <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #7 from Martin Nowak <[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

I think we:

- Need to add some sort of wildcard attribute for such cases, as declinating
all 16 combinations of `@nogc`, `pure`, `nothrow`, `@safe` callbacks isn't
feasible.

- Should simply remove scope in this specific case as the function is @system
and scope won't be checked anyhow, overloading with both variants doesn't buy
us anything.

--

Reply via email to