Special variables: Difference between revisions

Line 1,162:
Technically, these could be redefined, but the system would not work if those were redefined. Therefore most compilers refuse code which obviously attempts to do so, and we can think of them as being reserved names as well.
Global binding names are returned by <lang smalltalk>Smalltalk keys</lang>
Things like the shell environment, command line argument, version numbers etc. are usually not exposed via globals, but instead held in private class variables (static variables), which can be accessed via getter messages (which, by the way, makes it easier to insert a dialect compatibility layer).
 
 
=={{header|Tcl}}==
Anonymous user