pTAL Reference Manual (H06.08+)
Procedures, Subprocedures, and Procedure
Pointers
HP pTAL Reference Manual—523746-006
14-21
Subprocedure Body
FORWARD
means the subprocedure body is declared later in this procedure.
Subprocedure Body
A subprocedure body can contain sublocal declarations and statements.
sublocal-decl
is a declaration for one of:
•
simple variable
•
array (direct or read-only)
•
structure (direct only)
•
simple pointer
•
structure pointer
•
equivalenced variable
•
LITERAL
•
DEFINE
•
label
•
entry point
statement
is any statement described in Section 12, Statements
.
In subprocedures, declare pointers and directly addressed variables only. Here are
examples:
Sublocal Variable Example
Simple variable
(always direct)
INT var;
Direct array INT array[0:5];
Read-only array INT ro_array = 'P' := [0,1,2,3,4,5];
Simple variable
(always direct)
INT var;
Direct array INT array[0:5];
Read-only array INT ro_array = 'P' := [0,1,2,3,4,5];
BEGIN
;
;
END ;
statement
sublocal-decl
VST062.vsd










