Leslie Nielsen explains how to declare variable types in squeak.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Leslie Nielsen explains how to declare variable types in squeak.

Jerome Peace
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
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners