Iterate through getOverloads trait

Max Klimov via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 15 15:58:25 PDT 2016


I'm wondering how I can use the output of __traits(getOverloads, 
a, "name"). The example in the doc uses direct indexing (like 
__traits(getOverloads, a, "name")[0](param)) and it works. But 
I'm struggling with iterating through the result or storing the 
resulting tuple into a local var.
Example: https://dpaste.dzfl.pl/28a0057dbffd


More information about the Digitalmars-d-learn mailing list