Type Binding, Storage Binding, Scope

Type Binding, Storage Binding, Scope


Type

Type Binding

Static Typing

Dynamic Typing

Type Inference(타입 추론)

Storage Binding

Static Variables

Scope

Block

Static Scope

Static Scope Example

program main;
	procedure A;
		procedure C;
			begin ... end;
		procedure D;
			begin ... end;
		begin {A}
		...
		end;  {A}
	procedure B;
		procedure E;
			begin ... end;
		begin {B}
		...
		end;  {B}
	begin {main}
	...
	end.  {main}

Dynamic Scope

Evaluations of Scoping Rules

Scope and Lifetime

Referencing Environment