[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.70 end

Synopsis

 
begin
  statement;
  statement;
  ...
  statement
end

Description

The reserved word `end' closes a `begin' ... `end'; statement which joins several statements together into one compound statement.

@@ end of a <case> statement @@ end of a record or object declaration @@ part of a <to end do> module destructor

Conforming to

`end' is defined in ISO-7185 Pascal and supported by all Pascal variants.

Example

 
program EndDemo;
begin
  if True then
    WriteLn ('single statement');
  if True then
    begin                     { clamp statement1 ... }
      WriteLn ('statement1');
      WriteLn ('statement2')
    end                       { ... to statement2 }
end.

See also

section 8.1.7.2 begin end Compound Statement, section 9.21 begin



This document was generated by Frank Heckenbach on May, 10 2002 using texi2html