pTAL Reference Manual (H06.03+)
Procedures, Subprocedures, and Procedure
Pointers
HP pTAL Reference Manual—523746-005
14-19
Subprocedure Declarations
Subprocedure Declarations
You can declare subprocedures within procedures, but not within subprocedures.
type
specifies that the subprocedure is a function that returns a result and indicates the
data type of the returned result. type can be any data type described in
Section 3, Data Representation.
identifier
is the identifier of the subprocedure.
parameter-list
param-name
is the identifier of a formal parameter
. The number of formal parameters a
subprocedure can have is limited by space available in the parameter area of
the subprocedure.
type
SUBPROC identifier
parameter-list
VARIABLE
RETURNSCC
OVERFLOW_TRAPS
NOOVERFLOW_TRAPS
;
;
parameter-spec
subproc-body
FORWARD
;
VST702.vsd
( )
param-name
param-pair
,
VST210.vsd










