Special variables: Difference between revisions

Content deleted Content added
+ D entry
Line 1,148: Line 1,148:
===========================================================================
===========================================================================
</pre>
</pre>

=={{header|Smalltalk}}==
Talking about special (reserved) names, there are:
* self - the current method's receiver
* super - ditto, but different message send lookup
* thisContext - the current stackframe/aka active continuation

Everything else is found via the lexical scope ending in bindings in a namespace.
The global default namespace is called "Smalltalk" and contains (beside bindings for all classes by name) the singletons:
* true
* false
* nil
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>



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