Chapter 10
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.

 10.1 Programs
 10.2 Units
 10.3 Blocks
 10.4 Scope
   Block scope
   Record scope
   Class scope
   Unit scope
 10.5 Libraries