Re: Iterate through getOverloads trait

2016-07-16 Thread Ali Çehreli via Digitalmars-d-learn
On 07/15/2016 03:58 PM, Max Klimov wrote: > I'm wondering how I can use the output of __traits(getOverloads, a, > "name"). Apparently, it produces a delegate of calling name() on 'a'. > The example in the doc uses direct indexing (like > __traits(getOverloads, a, "name")[0](param)) and it works.

Iterate through getOverloads trait

2016-07-15 Thread Max Klimov via Digitalmars-d-learn
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. Exampl