You probably talk about something like : Assuming an instance method called #doSomething the following are identical:
myInstance doSomething myInstance perform: #doSomething ----------------- Benoit St-Jean Yahoo! Messenger: bstjean A standpoint is an intellectual horizon of radius zero. (Albert Einstein) ________________________________ From: DougEdmunds <[email protected]> To: [email protected] 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.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
