next up previous contents
Next: Modules - Global Data Up: Modules Previous: Modules

 

Modules - General Form

The syntax of a module program unit is:

 
MODULE < module name >

< declarations and specifications statements >

[ CONTAINS

< definitions of module procedures > ]

END [ MODULE [ < module name > ] ]

< module name > is the name that appears in the USE statement, it is not necessarily the same as the filename.

  figure9503
Figure 24: Schematic Diagram of a Module Program Unit

Entities of other modules can be accessed by a USE statement as the first statement in the specification part. This is called use-association.

Non-circular dependent definition chains are allowed (one module USE s another which USE s another and so on) providing a partial-inheritance mechanism.

A module may include the following declarations and specifications:

Return to corresponding overview page gif


next up previous contents
Next: Modules - Global Data Up: Modules Previous: Modules

©University of Liverpool, 1997
Wed May 28 20:20:27 BST 1997
Not for commercial use.