HP Pascal/iX Programmer's Guide (31502-90023)

7- 21
In the third call, p receives two values from the actual parameter list;
the value of the hidden parameter is two.
In the fourth call, p receives one value from DEFAULT_PARMS and one from
the actual parameter list; the value of the hidden parameter is two. For
more information on OPTION EXTENSIBLE and OPTION DEFAULT_PARMS, see
Chapter 8 .
Multidimensional Conformant Array Parameters
If a routine has multidimensional conformant array parameters, its
physical parameter order contains one hidden parameter for each nested
conformant array element. In the physical parameter order, each hidden
parameter follows the actual parameters for the bounds of its
corresponding dimension. The value of each hidden parameter is the size
of its corresponding dimension. These hidden parameters are not
accessible to the programmer. The program uses them to calculate values
of the
sizeof
function.
Example
PROGRAM prog;
TYPE
t = 1..10;
VAR
a : ARRAY [1..3,1..8,1..4] OF integer;
PROCEDURE p (b : ARRAY [lb1..ub1 : t;
lb2..ub2 : t;
lb3..ub3 : t] OF integer; EXTERNAL;
BEGIN
p(a);
END.