HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
TARGET (statement and attribute)
Chapter 10476
TARGET (statement and attribute)
Allows variables and arrays to be pointer targets.
Syntax
The syntax of a type declaration statement with the TARGET attribute is:
type
,
attrib-list
::
entity-list
type
is a valid type specification (INTEGER, REAL, LOGICAL, CHARACTER, TYPE
(
name
), etc.).
attrib-list
is a comma-separated list of attributes including TARGET and optionally
those attributes compatible with it, namely:
entity-list
is a comma-separated list of entities. Each entity is of the form:
array-name
[(
deferred-shape-spec-list
)]
If (
deferred-shape-spec-list
) is omitted, it must be specified in
another declaration statement.
array-name
is the name of an array being given the attribute ALLOCATABLE.
deferred-shape-spec-list
is a comma-separated list of colons, each colon representing one dimension.
Thus the rank of the array is equal to the number of colons specified.
The syntax of the TARGET statement is:
Table 10-51
ALLOCATABLE OPTIONAL SAVE
DIMENSION PRIVATE
INTENT PUBLIC