Argumnentation against external function operator overloading is unconvincing
Jonathan M Davis via Digitalmars-d
digitalmars-d at puremagic.com
Thu Sep 22 01:44:15 PDT 2016
On Thursday, September 22, 2016 00:14:52 H. S. Teoh via Digitalmars-d wrote:
> Normally this isn't a problem (D's
> module system will trigger an overload conflict and require explicit FQN
> to unambiguously select the right overload), but FQN's are not an option
> when the call is made from generic code.
And in the case of operator overloads, FQN makes no sense at all, since it
wouldn't be using the operator anymore.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list