HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
BYTE (extension)
Chapter 10 289
BYTE (extension)
Declares entities of type integer.
Syntax
BYTE [[,
attrib-list
] ::]
entity-list
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 integer constant integer expression. If
initialization-expr
is
present,
entity-list
must be preceded by the double colon.
Description
The BYTE statement is an HP extension that is used to declare the properties of entities. The
entities can take values that are whole numbers and can be represented in one byte. It is
equivalent to the INTEGER(KIND=1) statement.
Table 10-3
ALLOCATABLE INTRINSIC PRIVATE
DIMENSION OPTIONAL PUBLIC
EXTERNAL PARAMETER SAVE
INTENT POINTER TARGET