5.1 Simple and Compound Statements - Sequences of Statements
Syntax
Name Resolution Rules
Legality Rules
Static Semantics
Dynamic Semantics
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.
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
Examples of labeled
statements:
<<Here>> <<Ici>> <<Aqui>> <<Hier>> null;
<<After>> X := 1;
Ada 2005 and 2012 Editions sponsored in part by Ada-Europe