ABSTRACT

So far we have discussed procedures whose dummy arguments are data objects of various kinds. However, it is also possible for a procedure to have, as an actual argument, the name of yet another procedure. This could be useful if, for example, a procedure is to be written to calculate the integral of an arbitrary function. We could have a subroutine with the structure

SUBROUTINE Integrate (Func, alimit, blimit, result) REAL, EXTERNAL :: Func

REAL, INTENT (IN) :: alimit, blimit REAL, INTENT (OUT) :: result REAL :: x! local variable

.