[Issue 9786] Allow [non-member|UFCS] implementation of operators

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 22 15:23:26 PDT 2013


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



--- Comment #3 from monarchdodra at gmail.com 2013-03-22 15:23:25 PDT ---
(In reply to comment #2)
> Personally, I think that it's a terrible idea to be able to add overloaded
> operators to a type with 3rd party code

Why would it be any worst than what we have with UFCS?

> but with UFCS, it would be even worse,
> because as soon as you had a conflict, there would be no way to resolve it.

That's a good point. Unless you call the operator directly, eg:
lib.opBinary!"+"(a, b), but that's ugly as sin.

-- 
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