[squeak-dev] Re: Object>>#is:? (was: Re: PackageDependencyTest)
keith
keith_hodges at yahoo.co.uk
Fri Mar 5 16:09:06 UTC 2010
>
> <rant>
>> anObject askFor: #isMorph.
>
> oh, then,
>
> anObject prepareForQuestion: #askForIsMorph
> </rant>
>
> Really, I don't understand the askFor: metaphor.
>
>
> So Long,
> -Tobias
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".
Keith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100305/3c80a5db/attachment.htm
More information about the Squeak-dev
mailing list
|