Chapter 12
Programs, units, blocks

A Pascal program consists of modules called units. A unit can be used to group pieces of code together, or to give someone code without giving the sources. Both programs and units consist of code blocks, which are mixtures of statements, procedures, and variable or type declarations.

 12.1 Programs
 12.2 Units
 12.3 Blocks
 12.4 Scope
  12.4.1 Block scope
  12.4.2 Record scope
  12.4.3 Class scope
  12.4.4 Unit scope
 12.5 Libraries