Operator Overloading
1: 2: 3: 4: 5: 6: 7: 8: 9: |
|
Existing operators can be overloaded but new, custom operators can also be created using a combination of allowed operator characters.
In order to make an unary operator (as opposed to binary) the operator must
be prefixed with ~
as in the example above, (~-)
. This overloads the
-
operator.