| United States-English |
|
|
|
![]() |
HP Fortran Compiler for HP-UX: HP Fortran Programmer's Reference > Chapter 7 Program
units and proceduresInternal procedures |
|
An internal procedure is similar to an external procedure except that:
The syntax of an internal procedure definition is the same as for an external procedure (see “Procedure definition”), except that it has no internal procedure part. The reference to an internal procedure is the same as for an external procedure; see “Procedure reference”. The following example, int_func.f90, declares and references an internal function. Note that both the external procedure and the internal procedure have an assumed-shape array as a dummy argument, which requires the procedure to have an explicit interface (see “Procedure interface”). External procedures must be declared in an interface block to make their interface explicit; the interface of internal procedures is explicit by default. Example 7-2 int_func.f90
Here are the command lines to compile and execute the program, along with the output from a sample run:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||