What about
Symbol >>#asIcon
^ Smalltalk ui icons iconNamed: self
Then one can do: "#add asIcon" ?
Best regards,
Henrik
-----Original Message-----
From: Pharo-dev [mailto:
[hidden email]] On Behalf Of Peter Uhnak
Sent: Monday, May 30, 2016 4:34 PM
To: Pharo Development List <
[hidden email]>
Subject: [Pharo-dev] Smalltalk ui icons vs iconNamed: vs @
Hi,
My understanding is that now instead of
Smalltalk ui icons smallConfigurationIcon
I should do
Smalltalk ui iconNamed: #smallConfigurationIcon
This is however really unpractical, because it changes the operator priority, so I have to wrap it in parentheses every single time.
Button new
icon: (... iconNamed: ...)
How about we add '@' or another binary selector so we can avoid the parentheses?
Peter