Is there a way to implement static polymorphism in Delphi 2010?
Static polymorphism is not possible in Delphi; generics are not templates. Unlike templates, generics are parsed at the time of declaration, not at creation time. This is why a compiled module (* .dcu) should only contain an AST representation of a common object, while creating an AST from an uninformed C ++ template declaration is almost impossible.
From Delphi 2009 there are generics. In combination with class or interface constraints, you can use them to implement static polymophism.
, Delphi 2009 , Delphi 2010 ( , , , D2010)
Source: https://habr.com/ru/post/1717241/More articles:Period-supported date and time library for C # / VB.NET? - c #Why jQuery.browser.version returns 1.9.1.2 for Firefox 3.5.2 - jqueryUsing AcceptChanges with SQL Server - c #Get CSS style from PHP - domSubmitting Object Content Through RIA Services - .netMerging resources Dictionaries dynamically at runtime (for plugins) - c #How to choose where to store an object in C ++? - javaMicrosoft Robotics Studio and absolute contour problems - robotics-studioПроблема с заголовком панели навигации - iphonehow to filter list items by user / group column in sharepoint? - listAll Articles