Independent of what Delphi may support or not (and I agree that at a minimum in $mode Delphi fpc should not require that IFDEF)âŠ
in a modern compiler I would expect the generic type parameter to be optional in this specific scenario and the compiler infer it from the type of the parameters.
From: email@example.com [mailto:firstname.lastname@example.org] On Behalf Of Gennady Agranov
Sent: Monday, 2 January 2017 06:23
Subject: Re: [fpc-devel] Problem with generic parameter
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?
if Arrays<TTreeNode>.BinarySearch(changes.m_children,node,j,getComparatorByName) then
if Arrays.BinarySearch<TTreeNode>(changes.m_children,node,j,getComparatorByName) then
Post by Dmitriy Pomerantsev
Welcome to five years old bug. :)
Nope, that's not the same problem. Also the code example of the thread starter did not contain a generic method.
fpc-devel maillist - email@example.com <mailto:firstname.lastname@example.org>