[question]types

JArchibald at aol.com JArchibald at aol.com
Tue Jun 20 15:38:46 UTC 2000


=> 6/20/00 11:25:22 AM, karl.ramberg at chello.se =>
<< I've been wondering why variables don't default to something meaningful in 
their context, when they are not initialized. Smalltalk is a untyped language 
but it still requires types when the variables are uninitiated.  >>

Karl,

Smalltalk is fully typed at the object level. Variables, however, are untyped.

In the situation of variable which has not yet been assigned to, the variable 
refers to an instance of UndefinedObject. The only instance of 
UndefinedObject is #nil.

Jerry.
____________________________

Jerry L. Archibald
systemObjectivesIncorporated
____________________________
"If you count your pennies some of the time,
 you may not have to count your pennies all of the time."
    :-o





More information about the Squeak-dev mailing list