Anonymous user
Category:Smalltalk: Difference between revisions
→Variables and Scope
Line 223:
=== Variables and Scope ===
Variables are used to name objects. Actually they are bindings of a name to an object. Objects can only be passed and used by reference, and access to an object's internals is not possible from outside the object's
Smalltalk is lexically scoped, and outer variable bindings are closed over when a block (=lambda closure) is created.
|