DIP23 draft: Fixing properties redux

deadalnix deadalnix at gmail.com
Sun Feb 3 01:04:51 PST 2013


On Sunday, 3 February 2013 at 08:51:58 UTC, Jonathan M Davis 
wrote:
> auto prop(int[] arr) {...}
>
> in module a.b.c, and you have
>
> auto prop(int[] arr) {...}
>
> in module a.d.e, how do you deal with code that does
>
> import a.b.c;
> import a.d.e;
> auto var = arr.prop;
>
> Syntactically, there's no way to indicate which of the two 
> functions you mean.

Couldn't an alias make it ?

alias propFromA = a.b.c.prop;
auto var = arr.propFromA;


More information about the Digitalmars-d mailing list