HP Pascal/iX Reference Manual (31502-90022)

3- 14
An
array
is a structured type consisting of a fixed number of components
that are all of the same type. The maximum number of components is
implementation dependent. Depending on your implementation, refer to the
HP Pascal/iX Programmer's Guide
or the
HP Pascal/HP-UX Programmer's Guide
for more information.
Syntax
Array_type:
Array Declarations
An array type definition consists of the reserved word ARRAY, an index
type in square brackets, the reserved word OF, and the component type.
The reserved word PACKED may precede ARRAY. It instructs the compiler to
optimize storage space for the array components, possibly at the expense
of execution time.
An index that must be an ordinal type specifies the number of component
of an array. The
component
type may be any
simple, structured,
or
pointer
type, including a
file
type. The symbols (. and .) may replace
the left and right square brackets, respectively. The component of an
array may be accessed using the index of the component in a selector.
In the ANSI/IEEE770X3.97 - 1983 Standard Pascal, the term
string
designates a packed array of char with a starting index of 1 and an
ending index >1. HP Pascal uses the term PAC to designate a packed array
of char with a starting index of 1. HP Pascal also defines a standard
type string that is similar to a packed array with a declared maximum
length, whose actual length may vary at run time.
Permissible Operators
assignment :=
relational (PAC <, <=, =, <>, >=, >
only)
Standard Functions
strlen**
hex**
octal**
binary**
Standard Procedures
array parameters - pack strread**
prompt** strwrite**
read* unpack
readdir* write*
readln** writedir*
strmove** writeln**