Home Segments Index Top Previous Next

124: Mainline

The scope of a parameter is that portion of a program that can get at the value of the parameter. A method's parameter is said to have local scope because the value of that parameter is available in only those expressions that appear in the definition of the method itself.

Thus, local scope is the technical term for parameter fencing, and Smalltalk is said to be a locally scoped language.