Spring 2005 29 ICE 1341 – Programming Languages © In-Young Ko, Information and Communications University Review of Chapter 5 – Scope Rules Variable Visibility Variable Visibility Nested Static Scopes Nested Static Scopes Program Blocks Program Blocks Problems in Static Scoping Problems in Static Scoping Dynamic Scopes Dynamic Scopes Scope and Lifetime Scope and Lifetime Reference Environments: a set of visible names Reference Environments: a set of visible names Named Constants: static (manifest) or dynamic constants Named Constants: static (manifest) or dynamic constants Variable Initialization Variable Initialization
{}