[Pas2js] How I do it?

Henrique Gottardi Werlang henriquewerlang at hotmail.com
Fri Feb 11 11:20:42 CET 2022

I'm having a question of how to declare some generic functions in FPC.

At Delphi I declare them like this:

  TProc = reference to procedure;
  TProc<T> = reference to procedure (Arg: T);
  TProc<T1, T2> = reference to procedure (Arg1: T1; Arg2: T2);

How do I make an equivalent statement in FPC?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20220211/1ac27e8a/attachment.htm>

More information about the Pas2js mailing list