## 8.8.8 References to Generic Procedures

Generic procedures are procedures with different specific names that can be accessed under one generic (common) name. In FORTRAN 77, generic procedures were limited to intrinsic procedures. In Fortran 90, you can use generic interface blocks to specify generic properties for intrinsic and user-defined procedures.

If you refer to a procedure by using its generic name, the selection of the specific routine is based on the number of arguments and the type and kind parameters, and rank of each argument.

All procedures given the same generic name must be subroutines, or all must be functions. Any two must differ enough so that any invocation of the procedure is unambiguous.

The following sections describe references to generic intrinsic functions and show an example of using intrinsic function names.

For More Information:

- On user-defined generic procedures, see Section 8.9.3.
- On the rules for unambiguous procedure references, see Section 16.2.
- On the rules for resolving ambiguous procedure references, see Section 16.3.
- On intrinsic procedures, see Chapter 9.

Previous Page Next Page Table of Contents