HP Fortran Programmer's Reference (September 2007)

Program units and procedures
External procedures
Chapter 7 163
[
keyword
=]
actual-argument
keyword
is the name of a dummy argument that appears in the SUBROUTINE
statement. For more information about
keyword
, see “Keyword option” on
page 175.
actual-argument
is one of:
Expression, including a variable name
Procedure name
Alternate return
For detailed information about arguments, see “Arguments” on page 171.
alternate-return
is one of:
*
label
&
label
label
must be a branch target in the same scoping unit as the CALL
statement. The ampersand prefix (&) is an HP extension and is permitted in
fixed source form only. For information about alternate returns, see
“Returning from a procedure reference” on page 164.
For information about referencing a subroutine that implements a defined assignment, see
“Defined assignment” on page 187.
Referencing a function
An external function subprogram is referenced either by its name or by one of its entry point
names. The syntax of a function reference is:
name
([
actual-argument-list
])
where
name
is the function name or the name of one of its entry points (see “Alternate entry
points” on page 166).
actual-argument-list
has the same as it does in a subroutine
reference (see “Procedure reference” on page 162), except that it may not include an alternate
return.
For information about referencing a function that implements a defined operator, see “Defined
operators” on page 185.