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>;





_______________________________________________
fpc-devel maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to