Previous Topic Next topic Print topic


Entry and Exit Points

Every procedure has two special statements: the entry point to and the exit point from the procedure. The entry point is the place during execution at which the procedure has been called, but before other prelude code has run. A procedure's entry point is referred to within CodeWatch by specifying the procedure name followed by a backslash (\) and %ENTRY (or simply %E), for example,

READ_INPUT\%ENTRY. 

The entry point to the current activation of a procedure may simply be referred to as %ENTRY (or %E).

The exit point is the place after which the return value (if any) has been computed and the return statement has been executed. All local variables are still defined. An exit point is referred to by the procedure name followed by a backslash and %EXIT (or %Ex), for example,

READ_INPUT\%EXIT. 

The exit point to the current activation of a procedure may be referred to by %EXIT (or %Ex).

Entry and exit points may not be referred to in conjunction with statement offsets.

Previous Topic Next topic Print topic