April 28, 2013
7:44 p.m.
Hello.
I found this:
shortcut := $a ctrl. self assert: shortcut == shortcut shift
Why modifiers change receiver state instead of create new instance?
I can understand since they modify the shortcut.
To me it is very bad unexpected behaviour.
Why?
There is another example:
shortcut := $a ctrl. self assert: shortcut == (KMModifier shift + shortcut)
Yes. Such operation modified argument of message #+. What the crapp! Why it not returns new instance?
I hope you agree to change this behaviour