[fpc-devel] Problem with generic parameter

Sven Barth pascaldragon at googlemail.com
Mon Jan 2 14:27:08 CET 2017


Am 01.01.2017 21:23 schrieb "Gennady Agranov" <gennadyagranov at gmail.com>:
>
> Hi Sven,
>
> Based on bug#20503 you are in charge of support for "generics"?
> Thanks a lot for your work!
>
> What about this incompatibility - is it a known issue?
>
>         {$ifdef FPC}
>         if
Arrays<TTreeNode>.BinarySearch(changes.m_children,node,j,getComparatorByName)
then
>         {$else}
>         if
Arrays.BinarySearch<TTreeNode>(changes.m_children,node,j,getComparatorByName)
then
>         {$endif}

Sounds like generic methods, so you could try with trunk.
And it wasn't an incompatibility per se, but a feature we hadn't
implemented.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20170102/e3610f6c/attachment.html>


More information about the fpc-devel mailing list