Explicit and implicit interfaces
-
Explicit: in the same compilation unit, or imported interface
-
Required for certain uses such as POINTER dummies and assumed-shape array dummies
-
Implicit: as in FORTRAN 77
|
INTERFACE blocks provide explicit interfaces
-
Define types of parameters and return values
|
MODULE provides type-safe libraries
-
Contains declarations, functions, and type definitions
-
All interfaces collected in one place
-
PRIVATE data and procedures allowed
-
USE imports the interfaces
|