The global assumes there is a single hand, while there may be many of them.
And to this to work properly, there is code like this that updates the global in a loop:
Notice also that the code below may have a bug too, because it may happen that the cycle in the second block executes with a wrong hand. In my image we have 50 users of the class variable. We should study case by case.
Yes this code is delicate. To me the architecture is wrong. This is what alain faced when working on Morphic and all the events are strange (bubling) this is why after som years he decided to work on Bloc.
The global assumes there is a single hand, while there may be many of them. And to this to work properly, there is code like this that updates the global in a loop:
Notice also that the code below may have a bug too, because it may happen that the cycle in the second block executes with a wrong hand. In my image we have 50 users of the class variable. We should study case by case.