ardthusiast wrote: ↑Wed Apr 27, 2022 5:06 pm
The event handler can only execute functions, so I cannot use the not operator.
Can you elaborate? Under the hood operators are implemented almost just like function calls.
Anyway if you really cannot use 'not' nor operators then things become tricky. No operators would mean no +, no == etc?
I could pass the variable's memory address which would then allow me to directly modify the variable from inside the function?
That doesn't help if you cannot use 'not'.
All in all, still not clear why exactly you cannot do 'x = not x' (where x could also be an array/memoryview/... element i.e. a view on a piece of memory).