|
From: | Paolo Bonzini |
Subject: | [Help-smalltalk] Re: Object>>#do: ??? |
Date: | Wed, 06 Jun 2007 16:54:11 +0200 |
User-agent: | Thunderbird 2.0.0.0 (Macintosh/20070326) |
doesNotUnderstand: aMessage [ ^(Array canUnderstand: aMessage selector) ifTrue: [aMessage sendTo: {self}] ifFalse: [self basicDoesNotUnderstand: aMessage] ] ]
You did realize that this is also subsuming do: aBlock [ aBlock value: self ] didn't you? :-P Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |