Leslie Nielsen explains how to declare variable types in squeak.
peace_the_dreamer at yahoo.com
Sun Jun 24 22:57:42 UTC 2007
Leslie Nielsen explains how to declare variable types
"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.
Yours in curiosity and service, --Jerome Peace
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
More information about the Squeak-dev