[Issue 8062] UFCS and operator overloading

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 6 22:57:11 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=8062

hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh at quickfur.ath.cx

--- Comment #6 from hsteoh at quickfur.ath.cx ---
Correct me if I'm wrong, but according to spec
(https://dlang.org/spec/operatoroverloading.html), operator overloading only
works for member functions, not for module-level functions. So UFCS wouldn't
apply in this case.

--


More information about the Digitalmars-d-bugs mailing list