[Issue 17941] arity (and probably others) only consider the first lexically present function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 27 21:22:29 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17941
Simen Kjaeraas <simen.kjaras at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simen.kjaras at gmail.com
--- Comment #1 from Simen Kjaeraas <simen.kjaras at gmail.com> ---
This happens for all templates in std.traits that deal with properties of
functions. Making the templates fail when presented with an under-specified
overload set would be a breaking change, but documenting the behavior is
definitely worth it.
Phobos currently does not have good tools for working with overload sets -
__traits(getOverloads) is what we've got, and finding a specific overload is
manual work. In order to fix that part of the problem, I've created
getOverloads and overloadFor: https://github.com/dlang/phobos/pull/5818
--
More information about the Digitalmars-d-bugs
mailing list