Undefined operator - Problems with Overloading

Hello, I have a problem trying to use an add operator in my own class. I have attached an example. Have I missed something? The Xojo help isn’t helping me either.

Test Projekt

Kind regards

Norbert

For this, the documentation is actually correct.

https://documentation.xojo.com/api/math/operator_add.html

Operator_Add is not a Shared Method (so remove that one) and only takes one input, the right-hand side of the equation (remove the left parameter from your function)

1 Like