[squeak-dev] Object>>is:

Levente Uzonyi leves at elte.hu
Sun Feb 13 23:05:28 UTC 2011


On Sat, 12 Feb 2011, Stéphane Rollandin wrote:

>>> A possible solution is to name it #isA: and limit its semantics to
>>> inheritance testing only. We discussed this at length one year ago in that
>>> thread:
>> 
>> If you would only use it for inheritance testing, then why bother with it
>> at all? #isKindOf: is already in the image and does exactly that.
>
> That's also what I said in the thread from last year. Please read it, I see 
> no point in having to repeat the whole discussion.

I can't find that thread, and I only dimly remember it. I checked Cuis, 
the early adopter of this method and I think you're absolutely right 
about it.
There are only 26 implementors of this method and all but one uses simply 
reflect the class hierarchy. The only exception is #ShoutEnabled which is 
fine at the moment, but will fail as soon as overrides have to be added to 
the system.


Levente

>
> Stef
>
>


More information about the Squeak-dev mailing list