[squeak-dev] Re: Object>>#is:? (was: Re: PackageDependencyTest)
keith_hodges at yahoo.co.uk
Fri Mar 5 16:09:06 UTC 2010
>> anObject askFor: #isMorph.
> oh, then,
> anObject prepareForQuestion: #askForIsMorph
> Really, I don't understand the askFor: metaphor.
> So Long,
The metaphor comes from "asking for" an interface. i.e. checking the
presence of an interface that might be there, that is tagged by virtue
of its implementation of an identifying boolean selector. If you can
check that you have the interface you need to do something, why would
you care what an object "is".
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev