HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
TYPE (declaration)
Chapter 10 481
TYPE (declaration)
Declares a variable of derived type.
Syntax
TYPE (
type-name
) [[,
attrib-list
] ::]
entity-list
type-name
is the name of a previously deļ¬ned derived type.
attrib-list
is a comma-separated list of one or more of the following attributes:
If
attrib-list
is present, it must be followed by the double colon. For
information about individual attributes, see the corresponding statement in
this chapter.
entity-list
is a list of entities, separated by commas. Each entity takes the form:
name
[(
array-spec
)] [=
initialization-expr
]
where:
name
is the name of a variable or function
array-spec
is a comma-separated list of dimension bounds
initialization-expr
is a structure constructor
initialization-expr
is present
entity-list
Table 10-53
ALLOCATABLE INTRINSIC PRIVATE
DIMENSION OPTIONAL PUBLIC
EXTERNAL PARAMETER SAVE
INTENT POINTER TARGET