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

16.1 Programs
16.2 Units
16.3 Namespaces: Dotted Units
16.4 Unit dependencies
16.5 Blocks
16.6 Scope
16.6.1 Block scope
16.6.2 Record scope
16.6.3 Class scope
16.6.4 Unit scope
16.7 Libraries