HP Fortran Programmer's Reference (September 2007)

Data types and data objects
Intrinsic data types
Chapter 5110
or +autodbl4 is used. Refer to the HP Fortran Programmer’s Guide for
information about using these options to increase sizes. Refer to Chapter 10,
“HP Fortran Statements” for information about each
type-spec
.
If
type-spec
is present, it overrides the implicit-typing rules; see “Implicit
typing” on page 113.
As an HP extension to the Standard,
type-spec
can also take the form:
type
*
length
where
type
is an intrinsic type excluding BYTE, CHARACTER, DOUBLE
COMPLEX, and DOUBLE PRECISION; and
length
is the number of bytes of
storage required, as shown in Table 5-1. Alternatively, *
length
may appear
after the entity name. If the entity is an array with an array specification
following it, *
length
may appear after the array specification. If *
length
appears with the entity name, it overrides the length specified by
kind-selector
.
kind-selector
is
([KIND=]
scalar-int-init-expr
)
scalar-int-init-expr
is a scalar integer initialization expression that must evaluate to one of the
kind parameters available (see Table 5-1). For information about
initialization expressions, see “Initialization expressions” on page 93.
char-selector
specifies the length and kind of the character variable, when
type-spec
is
CHARACTER.
attribute-spec
is one or more of the attributes listed in Table 5-2. Some attributes are
incompatible with others; for information about which attributes are
compatible as well as full descriptions of all the attributes, see Chapter 10,
“HP Fortran Statements.”
entity-list
is a comma-separated list of entity names of the form:
var-name
[(
array-spec
)] [*
char-len
] [ =
init-expr
]
function-name
[(
array-spec
)] [*
char-len
]