5.6 Block Statements
Syntax
Static Semantics
Dynamic Semantics
Examples
Example of a block
statement with a local variable:
Swap:
declare
Temp : Integer;
begin
Temp := V; V := U; U := Temp;
end Swap;
Ramification: If task objects are declared
within a
block_statement
whose execution is completed, the
block_statement
is not left until all its dependent tasks are terminated (see
7.6).
This rule applies to completion caused by a transfer of control.
Within a
block_statement,
the block name can be used in expanded names denoting local entities
such as Swap.Temp in the above example (see
4.1.3).
Wording Changes from Ada 83