Name Resolution, Overloading, Allocation, and Lifetimes




CS152

Chris Pollett

Mar. 9, 2009

Outline

Introduction

Stretching the Symbol Table

Symbol Table for a Struct

Quiz

What does the lexical scope rule say?

  1. The scope of binding is limited to the block in which it appears.
  2. In a functional language the scope of a binding is the duration of the function call.
  3. Scope issues do not apply when we nest block within blocks.

Name Resolution and Overloading

Disambiguation

More on Disambiguation

The Environment

Declarations and Allocations

Environments and Stacks

Allocation for Procedures; Lifetimes