pTAL Reference Manual (H06.08+)

Procedures, Subprocedures, and Procedure
Pointers
HP pTAL Reference Manual523746-006
14-22
Entry-Point Declarations
Entry-Point Declarations
The entry-point declaration associates an identifier with a secondary location in a
procedure or subprocedure where execution can start.
identifier
is an entry-point identifier to be placed in the procedure or subprocedure body. It is
an alternate or secondary point in the procedure or subprocedure at which to start
executing.
Topics:
Procedure Entry-Point Identifiers on page 14-23
Subprocedure Entry-Point Identifiers on page 14-24
Example 14-8. Function Subprocedure
PROC p;
BEGIN
SUBPROC p1;
BEGIN
INT .a[0:9];
INT .ext b[0:9];
a[0] := 1;
b[9] := 2;
END;
CALL p1;
END;
PROC q;
BEGIN
SUBPROC q1;
BEGIN
STRUCT .s;
BEGIN
INT i;
INT j;
END;
END;
END;
,
;
VST195.vsd
identifier
ENTRY