[Pas2js] Generic procedure type declaration

Henrique Gottardi Werlang henriquewerlang at hotmail.com
Fri Jun 4 13:47:03 CEST 2021


I tried to find in the FPC documentation how to declare a generic procedure type, but i didn't find out.

What I'm trying to declare is something like this:

TMyProcType<T> = procedure(Param: T);

This kind of statement is made in Delphi, but I didn't figure out how to do it in FPC.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20210604/80f5a917/attachment.htm>


More information about the Pas2js mailing list