[Issue 8844] Warning for bug-prone operator overloading

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 18 11:28:50 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8844


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-18 11:28:48 PDT ---
Technically it's still callable:

auto Foo = Foo().opBinary(Foo());

But I don't know why someone would explicitly call opBinary without operators.

Making it an error could help catch bugs though. +1 from me.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list