You do not have that because *people* use respondsTo: ^^
My point was that if coder what to be lazy, and do not care about code, then
you can always find a dirty hack-around
This one kind of simulate a
receiver respondsTo: #strangeMessage
ifTrue: [ receiver strangeMessage ]
ifFalse: [ .. ]
…
Ben
On May 14, 2013, at 10:32 PM, stephane ducasse <[email protected]> wrote:
>
> On May 14, 2013, at 10:25 PM, Benjamin <[email protected]>
> wrote:
>
>> Then you will have
>>
>> [ receiver strangeMessage ]
>> on: Error
>> do: [ receiver otherMessage
>> on: Error
>> do: [ self defaultFallback ] ]
>
> can you show me real examples?
> Because in 15 years of Smalltaking non trivial program (but may be not
> complex enough) I never
> needed that.
>
> The few times where I did somethng like that was to load broken and
> incomplete Squeak code lazily in VisualWorks. But it was a real deep and fun
> hack
>
> Stef
>
>