TAL Reference Manual

Procedures
TAL Reference Manual526371-001
13-19
Usage Considerations
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.
Usage Considerations
An entry point of a procedure or subprocedure is a location at which execution can
start. The primary entry point is the procedure or subprocedure identifier. Secondary
entry points are entry-point identifiers you declare and place within the procedure or
subprocedure. Following are procedure entry-point guidelines, followed by
subprocedure entry-point guidelines.
Procedure Entry-Point Identifiers
Here are guidelines for using procedure entry-point identifiers:
Declare all entry-point identifiers for a procedure within the procedure.
Place each entry-point identifier and a colon (:) at a point in the procedure at which
execution is to start.
You can invoke a procedure entry-point identifier from anywhere in the program.
(For functions, use the entry-point identifier in an expression; for other procedures,
use a CALL statement.)
Pass actual parameters as if you were calling the procedure identifier.
You cannot use a GOTO statement to branch to a procedure entry-point identifier.
To obtain the address of a procedure entry-point identifier, preface the identifier
with @.
You can specify FORWARD or EXTERNAL procedure entry-point declarations,
which look like FORWARD or EXTERNAL procedure declarations, as shown in
Example 2.
VST1314.vsd
;identifier
,
ENTRY