8.8 Procedure Interfaces

A procedure interface specifies the name and characteristics of a procedure, the name and attributes of each dummy argument, and the generic identifier (if any) by which the procedure can be referenced. The characteristics of a procedure are fixed, but the remainder of the interface can change in different scoping units.

If these properties are all known within the scope of the calling program, the procedure interface is explicit; otherwise it is implicit. The following table shows which procedures have implicit or explicit interfaces:

Kind of Procedure  Interface 
External procedure  Implicit[1] 
Module Procedure  Explicit 
Internal Procedure  Explicit 
Intrinsic Procedure  Explicit 
Dummy Procedure  Implicit[1] 
Statement function  Implicit 

[1] Unless an interface block is supplied for the procedure.

The interface of a recursive subroutine or function is explicit within the subprogram that defines it.

An explicit interface can appear in a procedure's definition, in an interface block, or both. (Internal procedures must not appear in an interface block.)

The following sections describe when explicit interfaces are required, how to define explicit interfaces, and how to define generic names, operators, and assignment.

Previous Page Next Page Table of Contents