January 28, 2008 __traits(getOverloads) | ||||
|---|---|---|---|---|
| ||||
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. | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply