Contents | Prev | Next

"4.8 Allow non-numeric labels"

When this extension is enabled (it is by default), the Irie Pascal compiler will allow non-numeric statement labels. In Standard Pascal (i.e. ISO/IEC 7185), statement labels must be numeric and between 0 and 9999. When this extension is enabled, you can declare and use labels containing letters and underscores. NOTE: ISO/IEC 7185 is the standard for the Pascal porgramming language published by the Internation Organization for Standardization.

For example in the following program, loop is used as a statement label.

    program name(output);
    label loop;
    var
       i : integer;
    begin
       i := 1;
       loop:
       writeln(i);
       i := i + 1;
       if i <= 20 then goto loop;
    end.

Contents | Prev | Next