Overloading an imported function
Shriramana Sharma via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Oct 21 11:28:04 PDT 2015
Kagamin wrote:
> http://dlang.org/hijack.html
Thanks people, but even as per the rules:
1. Perform overload resolution independently on each overload set
2. If there is no match in any overload set, then error
3. If there is a match in exactly one overload set, then go with that
4. If there is a match in more than one overload set, then error
Here there is only one round(real, int) i.e. in the current module and only
one round(real) i.e. in the imported module, so as per rule 3, there should
be a clear resolution.
So why the conflict then?
--
Shriramana Sharma, Penguin #395953
More information about the Digitalmars-d-learn
mailing list