[fpc-pascal] generic proc inference

Sven Barth pascaldragon at googlemail.com
Fri Oct 4 00:07:33 CEST 2019


Mattias Gaertner via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb
am Do., 3. Okt. 2019, 21:35:

> Hi,
>
> What is the state of FPC support for calling generic procedures using
> inference like Delphi?
>
> For example:
>
> {$mode objfpc}
> generic procedure Run<T>(a: T);
> begin
> end;
>
> begin
>   Run(2);
> end.
>

A patch for it by Ryan Joseph exists (
https://bugs.freepascal.org/view.php?id=35261 ), but I've not yet found the
time to review it.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20191004/849b9db8/attachment.html>


More information about the fpc-pascal mailing list