nextupprevious

Structuring Programs Using Stages

Reasons for using stages:

  1. control access to program state

  2. group logically related operations

  3. encapsulate logic in the form of a finite-state automata. An event-driven state machine.

Control analog of object-oriented design.