next up previous contents
Next: Modules Interface Declaration Example Up: Modules Previous: Visualisation of Global Storage

 

Modules - Interface Declaration

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:

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.




next up previous contents
Next: Modules Interface Declaration Example Up: Modules Previous: Visualisation of Global Storage

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 15:03:35 GMT 1996
Not for commercial use.