Leslie Nielsen explains how to declare variable types in squeak.

Jerome Peace peace_the_dreamer at yahoo.com
Sun Jun 24 22:57:42 UTC 2007


Leslie Nielsen explains how to declare variable types
in squeak.

"surely you can't be serious?!" "
"of course i'm serious... 
And stop calling me Shirley". 
--Leslie Nielsen -airplane-

The way you declare a serious variable type in squeak
is to write an instance message for the class Joking
that does nothing when asked #surelyYouCantBeSerious
and maybe another for the class Serious that tells you
to stop calling it shirley. ;-)

Then in any method needing a type check you just ask
the variable the question and proceed.
QED.


Yours in curiosity and service, --Jerome Peace


       
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC



More information about the Squeak-dev mailing list