UFCS idea
Timon Gehr
timon.gehr at gmx.ch
Wed Jun 8 14:55:27 PDT 2011
Alex Dovhal wrote:
> Yes, but imagine you have a situation:
> someLib.d:
> class A{
> void member1(int a);
> void member2(int a);
> ...
> }
>
> someUserCode.d:
> void member3(A this, int a); //local user func
> ...
> member3(x, 1); //hundred times in user code
>
> And later library writer adds void member3(int a) member to class A.
> Now user code has name collision.
No, his 100 calls are all unambiguous.
Timon
More information about the Digitalmars-d
mailing list