On 03/28/2018 01:34 AM, arturg wrote:
you can call them with __traits(getOverloads, T, "name")[index];

you can overload on types attributes and linkage, but seems like you can only merge overloads based on types.

I don't think there's value in allowing overloads that can only be called via __traits.

Looks like this is an old issue [1] that is currently being fixed. run.dlang.io's "beta" and "nightly" compilers don't accept such overloads [2]. But I can't reproduce that locally. The fix has apparently been reverted because it needs more work.


[1] https://issues.dlang.org/show_bug.cgi?id=2789
[2] https://run.dlang.io/is/qlyMti

Reply via email to