5.1 Simple and Compound Statements - Sequences of Statements
1
Syntax
2
3
4/2
5/2
6
7
8
9
Name Resolution Rules
10
Legality Rules
11
Static Semantics
12
Dynamic Semantics
13
14/2
A
transfer of control
is the run-time action of an
exit_statement,
return statement,
goto_statement,
or
requeue_statement,
selection of a
terminate_alternative,
raising of an exception, or an abort, which causes the next action performed
to be one other than what would normally be expected from the other rules
of the language. As explained in
7.6.1, a
transfer of control can cause the execution of constructs to be completed
and then left, which may trigger finalization.
15
16
1 A
statement_identifier
that appears immediately within the declarative region of a named
loop_statement
or an
accept_statement
is nevertheless implicitly declared immediately within the declarative
region of the innermost enclosing body or
block_statement;
in other words, the expanded name for a named statement is not affected
by whether the statement occurs inside or outside a named loop or an
accept_statement
— only nesting within
block_statements
is relevant to the form of its expanded name.
Examples
17
Examples of labeled
statements:
18
<<Here>> <<Ici>> <<Aqui>> <<Hier>> null;
19
<<After>> X := 1;