02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>HP</strong> <strong>Fortran</strong> statements<br />

EXTERNAL (statement and attribute)<br />

EXTERNAL (statement and attribute)<br />

Declares a name to be external.<br />

Syntax<br />

A type declaration statement with the EXTERNAL attribute is:<br />

type , attrib-list :: function-name-list<br />

type<br />

attrib-list<br />

Table 10-10<br />

function-name-list<br />

324<br />

is a valid type specification (INTEGER, REAL, LOGICAL, CHARACTER, TYPE<br />

(name), etc.).<br />

is a comma-separated list of attributes including EXTERNAL and optionally<br />

those attributes compatible with it, namely:<br />

OPTIONAL PRIVATE PUBLIC<br />

is a comma-separated list of function names to be designated EXTERNAL.<br />

The syntax of the EXTERNAL statement is:<br />

EXTERNAL external-name-list<br />

Note that the syntax of the EXTERNAL statement does not permit optional colons.<br />

Description<br />

An EXTERNAL attribute or statement specifies that a name may be used as an actual argument<br />

in subroutine calls and function references. The name is either an external procedure, a<br />

dummy procedure, or a block data program unit.<br />

A name that appears in a type statement specifying the EXTERNAL attributemustbethename<br />

of an external procedure or of a dummy argument that is a procedure.<br />

The following rules and restrictions apply:<br />

A name can appear once in an EXTERNAL statement, in a declaration statement with an<br />

EXTERNAL attribute, or in an interface body, but not in more than one of these.<br />

Chapter 10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!