Chapter 13
Programs, units, blocks

A Pascal program can consist 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.

 13.1 Programs
 13.2 Units
 13.3 Unit dependencies
 13.4 Blocks
 13.5 Scope
  13.5.1 Block scope
  13.5.2 Record scope
  13.5.3 Class scope
  13.5.4 Unit scope
 13.6 Libraries