Undefined values: Difference between revisions

Content added Content deleted
Line 986: Line 986:


=={{header|Smalltalk}}==
=={{header|Smalltalk}}==
In Smalltalk, all variables are automatically initialized to nil. This includes instance variables (an object's private slots), class variables and locals. Thus a variable cannot ever be undefined.
In Smalltalk, all variables are automatically initialized to nil. This includes instance variables (an object's private slots), class variables and locals. This is part of the language's specification, not implementation specific. Thus a variable cannot ever be undefined.


=={{header|Tcl}}==
=={{header|Tcl}}==