Getting the parameters and other attributes belonging to the function overload with the greatest number of arguments

pineapple via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 31 14:37:54 PDT 2016


On Tuesday, 31 May 2016 at 20:46:37 UTC, Basile B. wrote:
> Yes this can be done, you must use the getOverload trait:
>
> https://dlang.org/spec/traits.html#getOverloads
>
> The result of this trait is the function itself so it's not 
> hard to use, e.g the result can be passed directly to 
> 'Parameters', 'ReturnType' and such library traits.

Awesome, thank you!


More information about the Digitalmars-d-learn mailing list