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 />

TARGET (statement and attribute)<br />

TARGET (statement and attribute)<br />

Allows variables and arrays to be pointer targets.<br />

Syntax<br />

The syntax of a type declaration statement with the TARGET attribute is:<br />

type, attrib-list :: entity-list<br />

type<br />

attrib-list<br />

Table 10-51<br />

entity-list<br />

442<br />

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

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

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

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

ALLOCATABLE OPTIONAL SAVE<br />

DIMENSION PRIVATE<br />

INTENT PUBLIC<br />

array-name<br />

deferred-shape-spec-list<br />

is a comma-separated list of entities. Each entity is of the form:<br />

array-name [(deferred-shape-spec-list)]<br />

If ( deferred-shape-spec-list ) is omitted, it must be specified in<br />

another declaration statement.<br />

is the name of an array being given the attribute ALLOCATABLE.<br />

is a comma-separated list of colons, each colon representing one dimension.<br />

Thus the rank of the array is equal to the number of colons specified.<br />

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

Chapter 10

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

Saved successfully!

Ooh no, something went wrong!