x += y
is a synonym for x = x + y
in Julia, so you can’t overload it.
1 Like
x += y
is a synonym for x = x + y
in Julia, so you can’t overload it.