j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Hello,
I found that I can't create a menu that has only one menu item with its label string and the action selector are equal, in terms of String>>=. For example, a menu created by the following expression doesn't work.
SelectionMenu labelList: #('suspend') lines: #() selections: #(suspend)
This is because that the Compiler (Encoder) trys to merge the "same" literals, the selector to be #perform'ed is 'suspend' not #suspend.
I ended up with a mutually recursive equality check in LiteralArray. Attached is the code.
-- Yoshiki
Attachments:
squeak-dev@lists.squeakfoundation.org