getOverloads, but also include all the imported members

Marc Schütz via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 24 05:11:33 PDT 2016


On Wednesday, 23 March 2016 at 20:54:20 UTC, Yuxuan Shui wrote:
> Say:
>
> module one;
> void func(int a){}
>
> /////////////////////
>
> module two;
> import one;
> void func(float a){}
>
> Is there a way to get both func() in module two?

Add in module two:

alias func = one.func;


More information about the Digitalmars-d-learn mailing list