getOverloads, but also include all the imported members

Yuxuan Shui via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 24 08:07:09 PDT 2016


On Thursday, 24 March 2016 at 13:55:31 UTC, Adam D. Ruppe wrote:
> On Thursday, 24 March 2016 at 12:11:33 UTC, Marc Schütz wrote:
>> On Wednesday, 23 March 2016 at 20:54:20 UTC, Yuxuan Shui wrote:
>>> module one;
>>> void func(int a){}
>>> /////////////////////
>>> module two;
>>> import one;
>>> void func(float a){}
>>
>> Add in module two:
>>
>> alias func = one.func;
>
> Indeed, the two funcs are NOT overloaded right now unless you 
> add that alias. See : http://dlang.org/hijack.html for details.

Is there a way to do this automatically?


More information about the Digitalmars-d-learn mailing list