Hi,

I noticed that there's a folder for fpc242 rc1 in ftp://ftp.freepascal.org/pub/fpc/beta/

Trying to access gives an error 550

The reason to get the 242 version is to test an bug reported by a user of the fpc243 snapshot provided at http://www.hu.freepascal.org/lazarus/

Basically it would not compile the attached file

Luiz
program testGeneric;

{$Mode ObjFpc}
{$H+}

uses 
  Fgl;
  
type
  TIntegerList = specialize TFPGList <Integer>;
  
var
  List: TIntegerList;
  i, j: Integer;
begin
  List := TIntegerList.Create;
  i := 1;
  List.Add(i);
  i := 2;
  List.Add(i);
  for j := 0 to List.Count - 1 do
    WriteLn(List[j]);
  List.Delete(0);
  for j := 0 to List.Count - 1 do
    WriteLn(List[j]);
  List.Destroy;     
end. 
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to