December 17, 2022 [Issue 18523] In the language spec, clarify member function vs UFCS lookup semantics | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18523 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P4 -- |
June 21, 2023 [Issue 18523] In the language spec, clarify member function vs UFCS lookup semantics | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18523 Bolpat <qs.il.paperinik@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |qs.il.paperinik@gmail.com Resolution|--- |FIXED --- Comment #1 from Bolpat <qs.il.paperinik@gmail.com> --- At some point, the spec got refined to: > A free function can be called like a member function when both: > > • The member function does not (or cannot) exist for the object expression > • The free function's first parameter type matches the object expression This explains well that the mere existence of an eponymous member makes UFCS for that name not work. -- |
Copyright © 1999-2021 by the D Language Foundation