Begin-block termination
A
begin-block is terminated when control passes to another active
block by some means other than a procedure reference. These means
are:
- The END statement for the begin-block is executed. Control continues
with the statement physically following the END, except when the
block is an ON-unit.
- A GO TO statement within the begin-block (or within any block
internal to it) is executed, transferring control to the point outside
the block.
- A STOP or an EXIT statement is executed.
- Control reaches a RETURN statement that transfers control out
of the begin-block and out of its containing procedure.
A GO TO statement can also terminate other blocks if the transfer
point is contained in a block that did not directly activate the
block being terminated. In this case, all intervening blocks in
the activation sequence are terminated. For an example of this, see
the example in Procedure termination.
|
This information center is powered by Eclipse technology. (http://www.eclipse.org)