UFCS doesn't work in some cases
Mathias LANG via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Sep 9 12:10:16 PDT 2014
On Tuesday, 9 September 2014 at 17:58:16 UTC, Danyal Zia wrote:
> As far as I know, UFCS are designed to make it easy to extend
> the class for specific applications, however, without the
> ability to use UFCS for those cases, it limits its usefulness.
> Are these oversights/bugs? Or is their any rationale behind the
> decision to not implement UFCS for them?
>
> Danyal
> The reason why local symbols are not considered by UFCS, is to
> avoid unexpected name conflicts.
Stated at the very bottom of: http://dlang.org/function.html
More information about the Digitalmars-d-learn
mailing list