List Info

Thread: Re: Object>>#do: ???




Re: Object>>#do: ???
country flaguser name
Switzerland
2007-06-06 09:54:11
>     doesNotUnderstand: aMessage [
>         ^(Array canUnderstand: aMessage selector)
>             ifTrue: [aMessage sendTo: ]
>             ifFalse: [self basicDoesNotUnderstand:
aMessage]
>     ]
> ]

You did realize that this is also subsuming

     do: aBlock [ aBlock value: self ]

didn't you? :-P

Paolo


_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )