HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
INTEGER
Chapter 10 385
INTEGER
Declares entities of type integer.
Syntax
INTEGER [
kind-spec
] [[,
attrib-list
] ::]
entity-list
kind-spec
is the kind type parameter that speciļ¬es the range of the entities in
entity-list
.
kind-spec
takes the form:
([KIND=]
kind-param
)
where
kind-param
can be a named constant or a constant expression that
has the integer value of 1, 2, 4, or 8. The size of the default type is 4.
As an extension,
kind-spec
can take the form:
*
len-param
where
len-param
is the integer 1, 2, 4, or 8
(default = 4).
attrib-list
is a list of one or more of the following attributes, separated by commas:
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
Table 10-28
ALLOCATABLE INTRINSIC PRIVATE
DIMENSION OPTIONAL PUBLIC
EXTERNAL PARAMETER SAVE
INTENT POINTER TARGET