pTAL Reference Manual (H06.03+)

Pointers
HP pTAL Reference Manual523746-005
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 segment—that is, a read-only
array—is 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
labels—in both procedures and subprocedures—is 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;