next up previous contents
Next: Modules - Procedure Encapsulation Up: Modules Previous: Modules Interface Declaration Example

Modules - Procedure Declaration

Placing interfaces in modules for visibility purposes has the following problems,

    SUBROUTINE Sub1(A,B,C)
     USE my_interfaces ! contains Sub1 stuff
      ...

The solution to this is to package the actual procedures in the module; the interfaces become visible and the above problems are solved.

These are now called module procedures and are encapsulated into the module.

For more information, click here gif


next up previous contents
Next: Modules - Procedure Encapsulation Up: Modules Previous: Modules Interface Declaration Example

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996
Not for commercial use.