pTAL Reference Manual (H06.08+)

Pointers
HP pTAL Reference Manual523746-006
10-10
PROCADDR (Procedures, Procedure Pointers, and
Procedure Entry Points)
PROCADDR (Procedures, Procedure Pointers, and Procedure
Entry Points)
The address type of procedures, procedure pointers (PROCPTRs), and procedure
entry points is PROCADDR.
Subprocedures, Subprocedure Entry Points, Labels, and Read-Only Arrays (CBADDR
and CWADDR Address Types)
The address type of a pointer to code in a user code segmentthat is, a read-only
arrayis CWADDR if the pointer is type INT and is CBADDR if the pointer is type
STRING. The address type of subprocedures, subprocedure entry points, and all
labelsin both procedures and subproceduresis CWADDR.
Example 10-6. PROCADDR
PROCADDR pa;
PROCPTR q( j );
INT j;
END PROCPTR;
PROC p( j );
INT j;
BEGIN
ENTRY p1;
...
p1:
pa := @q; ! Address type of q is PROCADDR
pa := @p; ! Address type of p is PROCADDR
pa := @p1; ! Address type of p1 is PROCADDR
END;