HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
LOGICAL
Chapter 10 395
LOGICAL
Declares entities of type logical.
Syntax
LOGICAL [
kind-spec
] [[,
attrib-list
] ::]
entity-list
kind-spec
speciļ¬es the size of the logical entity in bytes.
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
array-spec
Table 10-31
ALLOCATABLE INTRINSIC PRIVATE
DIMENSION OPTIONAL PUBLIC
EXTERNAL PARAMETER SAVE
INTENT POINTER TARGET