[fpc-devel] Problem with generic parameter
thorsten.engler at gmx.net
Mon Jan 2 05:28:54 CET 2017
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: fpc-devel-bounces at lists.freepascal.org [mailto:fpc-devel-bounces at lists.freepascal.org] On Behalf Of Gennady Agranov
Sent: Monday, 2 January 2017 06:23
To: fpc-devel at lists.freepascal.org
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
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. :)
Nope, that's not the same problem. Also the code example of the thread starter did not contain a generic method.
fpc-devel maillist - fpc-devel at lists.freepascal.org <mailto:fpc-devel at lists.freepascal.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel