8.1.7.12 The Declaring Statement
This statement allows to declare a variable within a statement part. It
looks like this:
| | var
variable identifier: type identifier;
|
or
| | var
variable identifier: type definition;
|
and with initializing value:
| | var
variable identifier: type identifier value expression;
|
or
| | var
variable identifier: type definition value expression;
|
Unlike in declaration parts, the initializing expression has not to be
a constant expression. Note that every declaring statement has to start
with var. The name space of variable identifier extends from
its declaration to the end of the current matching statement sequence
(which can be a statement part (of the program, a function, a procedure or
an operator) or, within that part, a begin end compound statement, a repeat
loop, or the else branch of a case statement). This statement is a
GNU extension.
See also
section 8.2.1 Type Definition, section 8.2 Data Types
This document was generated
by Frank Heckenbach on May, 10 2002
using texi2html