help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Re: Object>>#do: ???


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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]