Era Scarecrow:

It's an easy mistake to make. Maybe the compiler should issue a warning when opAssign attempts and fails and opOpBinary is defined.

If you have strong feelings about this, then add a Bugzilla entry.

There are other cases. Generally the D compiler should add some warnings that help against operator overloading mistakes.

Bye,
bearophile

Reply via email to