getOverloads, but also include all the imported members

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 24 06:55:31 PDT 2016


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.


More information about the Digitalmars-d-learn mailing list