HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
EXTERNAL (statement and attribute)
Chapter 10358
EXTERNAL (statement and attribute)
Declares a name to be external.
Syntax
A type declaration statement with the EXTERNAL attribute is:
type
,
attrib-list
::
function-name-list
type
is a valid type specification (INTEGER, REAL, LOGICAL, CHARACTER, TYPE
(
name
), etc.).
attrib-list
is a comma-separated list of attributes including EXTERNAL and optionally
those attributes compatible with it, namely:
function-name-list
is a comma-separated list of function names to be designated EXTERNAL.
The syntax of the EXTERNAL statement is:
EXTERNAL
external-name-list
Note that the syntax of the EXTERNAL statement does not permit optional colons.
Description
An EXTERNAL attribute or statement specifies that a name may be used as an actual argument
in subroutine calls and function references. The name is either an external procedure, a
dummy procedure, or a block data program unit.
A name that appears in a type statement specifying the EXTERNAL attribute must be the name
of an external procedure or of a dummy argument that is a procedure.
The following rules and restrictions apply:
A name can appear once in an EXTERNAL statement, in a declaration statement with an
EXTERNAL attribute, or in an interface body, but not in more than one of these.
Table 10-10
OPTIONAL PRIVATE PUBLIC