[fpc-pascal]Questions about the new features in version 1.2.

Keith Bowes keith_bowes at hotmail.com
Wed Apr 11 08:32:45 CEST 2001


> To Keith Bowes : could you show an example program that fails?
Sure.  Here's a small test case:

Program Test;

Var
    A: Array Of String;
    I: Integer;

Begin
    SetLength(A, 3);

    A[1] := 'String 1';
    A[2] := 'String 2';
    A[3] := 'String 3';

    WriteLn('Upper bound: ', High(A));
    WriteLn('Lower bound: ', Low(A));
    WriteLn('Elements of the array:');

    For I := Low(A) To High(A) Do
        WriteLn('Array element ', I, ': ', A[I]);

    Halt;
End.

> And which version of the compiler are you using? (use the command line
option -i)
Here's the output I got using the -i option:

Free Pascal Compiler version 1.1

Compiler Date  : 2001/04/04
Compiler Target: i386

This program comes under the GNU General Public Licence
For more information read COPYING.FPC

Report bugs,suggestions etc to:
                 bugrep at freepascal.org







More information about the fpc-pascal mailing list