[fpc-devel] Templates / Generics Syntax

Ales Katona almindor at gmail.com
Fri Nov 4 14:06:34 CET 2005


>Example:
>
>procedure MyProc(T); // generic procedure without parameters
>ver i: T;
>begin
>  ...
>end;
>
>procedure MyProc(T: TClass); // non generic procedure
>begin
>end;
>
>Call
>
>MyProc(TObject);
>
>What will happen?
>
>Mattias
>  
>

Sky will reign fire:

procedure (var T);
begin
  // generic or not??
end;



More information about the fpc-devel mailing list