[squeak-dev] Re: Object>>#is:? (was: Re: PackageDependencyTest)
lecteur at zogotounga.net
Thu Mar 4 21:52:10 UTC 2010
> 2010/3/4 Stéphane Rollandin<lecteur at zogotounga.net>:
>>> base (false) -> parent(true) -> subclass(false).
>> I have this mostly in class-side methods; an example in Squeak proper (that
>> is, not my code), is TestCase class>>isAbstract
> ah, but that's a different story; there may well be multiple abstract
> classes along one inheritance chain. A MyMorph subclass that will
> respond with false to isMyMorph is another thing.
again because you equate the semantics of #isMyMorph to isKindOf: Morph
this may not be the case. I could have Morph -> MyMorph -> YourMorph ->
MyOtherMorph and want both MyMorph and MyOtherMorph answer true to
yes I could ! remember I'm a monkey :)
More information about the Squeak-dev