Next: Modules Interface Declaration Example
Up: Modules
Previous: Visualisation of Global Storage
It is good practice (and often mandatory) to declare
procedure interfaces in any program unit invoking the corresponding
procedure, however, in a single executable program there will be:
- a large number of procedures;
- a large amount of duplicated interface declarations
with great opportunity for mismatch;
by placing all interface declarations
in a MODULE the above problems become more
tractable; the interfaces will be visible wherever the module is
used. This method allows the interface to be declared just
once (in the module) thereby almost eliminating the scope for typos and
mismatches. It also has the advantage of collecting all the interfaces
together which is a handy reference during coding.
Return to corresponding overview page
Next: Modules Interface Declaration Example
Up: Modules
Previous: Visualisation of Global Storage
©University of Liverpool, 1997
Wed May 28 20:20:27 BST 1997Not for commercial use.