does squeak have an equivalent of #askFor:

Diego Fernandez diegof79 at gmail.com
Fri Aug 11 17:11:28 UTC 2006


Ouch!
IMHO a lot of #isThis or #isThat shows the lack of some abstractions.
Maybe you can solve it a better way.



On 8/11/06, Keith Hodges <keith_hodges at yahoo.co.uk> wrote:
> I remeber a while back using #askFor:
>
> which does something like.
> ------------
> askFor: selector
>
> ^(self respondsTo: selector) ifTrue: [ self perform: selector ] ifFalse:
> [ false ].
> ------------
>
> is used for testing isThis and isThat's
>
> a askFor: #isMyclass
>
> best regards
>
> Keith
>
>
>
> ___________________________________________________________
> Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html
>
>



More information about the Squeak-dev mailing list