HP Fortran Programmer's Reference (September 2007)

Data types and data objects
Intrinsic data types
Chapter 5 111
where
array-spec
is described in Array declarations” on page 59;
char-len
is described with the CHARACTER statement in Chapter 10; and
init-expr
is
described in “Initialization expressions” on page 93. If you include
init-expr
in
entity
, you must also include the double colon (::) separator.
As an extension to the Standard, HP Fortran permits the use of slashes to
delimit
init-expr
. The double colon separator, array constructors, and
structure constructors are not allowed in this form of initialization. Arrays
may be initialized by defining a list of values that are sequence associated
with the elements of the array.
Table 5-2 Attributes in type declaration statement
Attribute Description
AUTOMATIC Makes procedure variables automatic (extension).
ALLOCATABLE Declares an array that can be allocated during execution.
DIMENSION(
array-spe
c
)
Declares an array; see “Array declarations” on page 59. If
entity-list
also includes an
array-spec
, it overrides the
DIMENSION attribute.
EXTERNAL Specifies a subprogram or block data located in another program
unit.
INTENT Defines the mode of use of a dummy argument.
INTRINSIC Allows a specific intrinsic name as an actual argument.
OPTIONAL Declares the presence of an actual argument as optional.
PARAMETER Defines named constants.
POINTER Declares the entity to be a pointer.
PRIVATE Inhibits visibility outside a module.
PUBLIC Provides visibility outside a module.
SAVE Ensures the entity retains its value between calls of a procedure.
STATIC Ensures the entity retains its value between calls of a procedure
(extension).
TARGET Enables the entity to be the target of a pointer.