__traits(getOverloads)
Christopher Wright
dhasenan at gmail.com
Mon Jan 28 04:52:19 PST 2008
Hey, Walter --
Could we get __traits(getOverloads) to get virtual and non-virtual
overloads for a symbol? I have a dependency injection library that works
by getting the constructor arguments for a type and building those
dependencies recursively. But sometimes it's convenient to have a
no-arguments constructor for tests and such, and my library should skip
that if it exists.
I can't get methods from tupleof, and allMembers doesn't give overloads,
or I'd go with a template solution.
More information about the Digitalmars-d
mailing list