[Issue 8062] UFCS and operator overloading

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 13 14:03:18 PDT 2012


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



--- Comment #5 from jens.k.mueller at gmx.de 2012-06-13 14:05:28 PDT ---
(In reply to comment #4)
> (In reply to comment #3)
> > 
> > My bad, I actually meant it a.fn ---> fn(a,...) way. Which brings us to the
> > point  - request is Invalid then?
> 
> I don't think it is invalid.
> 
> a + b -> a.opBinary!"+"(b) -> opBinary!"+"(a, b);
> 
> Probably this is on the borderline between bug and enhancement request -- I
> think the documentation can be interpreted either way.

Which documentation are you referring to? I don't think this is an enhancement.
How can it be an enhancement? Are there exceptions when UFCS has to be applied?

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