[fpc-devel] Problem with generic parameter

Gennady Agranov gennadyagranov at gmail.com
Sun Jan 1 21:22:56 CET 2017


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}

Thanks,
Gennady

On 12/31/2016 1:25 PM, Sven Barth wrote:
>
> Am 31.12.2016 10:33 schrieb "Дмитрий Померанцев" <pda2 at yandex.ru 
> <mailto:pda2 at yandex.ru>>:
> >
> > Welcome to five years old bug. :)
> > http://bugs.freepascal.org/view.php?id=20503
>
> Nope, that's not the same problem. Also the code example of the thread 
> starter did not contain a generic method.
>
> Regards,
> Sven
>
>
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20170101/87e5e4d6/attachment.html>


More information about the fpc-devel mailing list