From: DougEdmunds <dougedmunds@gmail.com>
To: pharo-project@lists.gforge.inria.fr
Sent: Fri, March
18, 2011 9:40:43 PM
Subject: [Pharo-project] Method expressed as symbol, used as argument
It was pointed out that given an instance method
MyClass >> doSomething
that
MyClass do: [:each | each doSomething].
can be expressed as
MyClass do: #doSomething.
Can someone suggest something to read that explains the usage of #
here (#doSomething), the relation of methods to symbols, etc.
Trying to wrap my head around it. Thanks.
-dae
--
View this message in context:
http://forum.world.st/Method-expressed-as-symbol-used-as-argument-tp3388864p3388864.htmlSent from the Pharo Smalltalk mailing list archive at Nabble.com.