pTAL Reference Manual (H06.03+)

Procedures, Subprocedures, and Procedure
Pointers
HP pTAL Reference Manual523746-005
14-20
Subprocedure Declarations
param-pair
is a pair of formal parameter identifiers that comprise a language-independent
string descriptor in the form:
string
is the identifier of a standard or extended STRING simple pointer. The
actual parameter is the identifier of a STRING array or simple pointer
declare inside or outside a structure.
length
is the identifier of a directly addressed INT simple variable. The actual
parameter is an expression that specifies the length of string in bytes.
VARIABLE
specifies that the compiler treats all parameters as optional, even if some are
required by your code.
RETURNSCC
causes a subprocedure to return a condition code. The compiler reports an error if
a subprocedure attempts to test the condition code after calling a subprocedure
that does not specify RETURNSCC. Subprocedures declared with RETURNSCC
cannot return 64-bit values.
OVERFLOW_TRAPS
enables overflow traps for a subprocedure.
NOOVERFLOW_TRAPS
disables overflow traps for a subprocedure.
parameter-spec
specifies the parameter type of a formal parameter and whether it is a value or
reference parameter, as described in Formal Parameter Specification on
page 14-10.
subproc-body
is a BEGIN-END block that contains sublocal declarations and statements—see
Subprocedure Body on page 14-21.
string length:
VST039.vsd