Procedures




CS152

Chris Pollett

May 4, 2009

Outline

Introduction

Procedures and Functions

Procedure Semantics

Example

Quiz

Which of the following kind of expression evaluation will be the slowest?

  1. normal order
  2. short circuit
  3. applicative order

Environments

Parameters and Arguments

Parameter Passing Mechanisms

We now look at different ways data can be fed into parameters: