No household is perfect

Jakob Ovrum jakobovrum at gmail.com
Wed Dec 4 05:50:57 PST 2013


On Wednesday, 4 December 2013 at 13:39:32 UTC, Ary Borenszweig 
wrote:
> That's nice.
>
> Of course, it's not needed if you overload "+" for the int type 
> to receive a complex.

The point is that D does not have operator overloading for 
in-built types. The unnecessary one is the global operator 
overload you suggest, as it is more intrusive than 
`opBinaryRight`.


More information about the Digitalmars-d mailing list