The problem is that each variable would need a custom version of the operator, since different “logic” would need to be execute depending on what was being assigned etc… things easily accomplished with the Xojo “assigns”
that is more or less true with assigns as well
there’s no “write assigns once and it applies to each class etc” either
you kind of write one per type
the big difference I see is that theres no simple way to write multiple “assigns” per class IF you go the route of defining += + etc since assigns allows you to write several “assigns” methods
Sub ChangeValue(a As Integer, b As Integer, Assigns c As Integer)
call someotherfunction(a+b/c)
End Function
Sub foo(a As Integer, b As Integer, Assigns c As Integer)
call bar(c,b,a)
End Function
if I created a custom operator, I would need a different class for each one, in which case I could simply use the SUBSCRIPT feature