Operator Overloading
n
What can be overloaded
n
Most operators
n
Can't do
n
. .*, :: ?:
n
Can't add any new ones
n
Can't change associativity
n
Can't change precedence
n
Can't change arity
n
Nothing done
automatically for you
n
Issues
n
arity: binary vs unary
n
operator side
n
Use cautiously
n
Obscures behavior
n
Can actually implement
opposite behavior for an
operator