Generic programming: Difference between revisions

Content deleted Content added
Genericity in Free Pascal: Small WP:COPYEDITs WP:EoS clarify. Adds: information, WP:LINK.
Line 448:
 
=====In Delphi=====
The [[Object Pascal]] dialect [[Delphi (software)|Delphi's]] [[Object Pascal]] dialect acquired generics in the 2007 Delphi 200711 release by [[Codegear]], initially only with the (now discontinued) .NET compiler (since discontinued) before being added to the native code in the 2009 Delphi 200912 release. The semantics and capabilitiesabilities of Delphi generics are largely modelled on those had byof generics in .NET 2.0, though the implementation is by necessity quite different. Here's is a more or less direct translation of the first C# example shown above:
 
<syntaxhighlight lang="delphi">