[fpc-devel]Generic Types in FPC

rstar at mnet-online.de rstar at mnet-online.de
Sun Sep 12 16:37:09 CEST 2004


According to Robert Love's blog Delphi will provide generic types 
support. Will FPC support the feature in the same way?

Delphi Syntax for Generic Types will be:

type
  TFoo<T> = class
  private
   data1: T;
  public
    function SomMethod(param1: INteger; Param2 :T) : Integer;
  end;

function TFoo<T>.SomeMethod(...);
begin
end;

var
  Foo : TFoo<Integer>;








More information about the fpc-devel mailing list