Ada '83 Quality and Style:
Guidelines for Professional Programmers
CHAPTER 4: Program Structure
Proper structure improves program clarity. This is analogous to readability on
lower levels and facilitates the use of the readability guidelines (Chapter
3). The various program structuring facilities provided by Ada were designed
to enhance overall clarity of design. These guidelines show how to use these
facilities for their intended purposes.
Abstraction and encapsulation are supported by the package concept and by
private types. Related data and subprograms can be grouped together and seen
by a higher level as a single entity. Information hiding is enforced via
strong typing and by the separation of package and subprogram specifications
from their bodies. Additional Ada language elements that impact program
structure are exceptions and tasks.
Back to document index