Vote UpVote

Yes Delphi does some type inference on generic method calls

The Wiert Corner – Delphi does indeed so some type inference as Primoz found out below. It has been doing this for a long time, improved over time, but has a long road ahead. One odd thing is that generics (and the majority of inference support) were introduced in Delphi 2009 ([WayBack] Generics with Delphi 2009 Win32), but the inference was already documented in Delphi 2007: [WayBack] Delphi 2007 – Declaring Generics: Parameterized Types This is a reminder to myself to write some more example code on what kinds of inference work and which do not, especially because of the comments from David Heffernan, ...
Favorite? Off-Topic? jpluimers @ 2020-07-23 07:02


Visits: 158
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Michał Rajewicz
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)