[Issue 18785] New: No way to get list of overloads for a given template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 20 11:42:00 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18785
Issue ID: 18785
Summary: No way to get list of overloads for a given template
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: simen.kjaras at gmail.com
__traits(getOverloads) only works on regular functions, and do not include
templated overloads. Simply adding them to getOverloads's result would be a
breaking change. I therefore propose adding a new trait - getAllOverloads -
that returns all symbols in an overload set, be they types, templates,
functions, or otherwise.
--
More information about the Digitalmars-d-bugs
mailing list