Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.986 Beiträge
 
#1

As Delphi generics are not supported for free functions, wrap them in a record contai

  Alt 31. Jan 2018, 05:13
Of the things not possible with generics in Delphi, I already wrote about*Impossible: Property using Generics in Delphi. Now it’s time to write about simulating a free function with generics as this is impossible: function CreateManaged<T>(const value: T): IManaged<T>; Usually I create a static record method for these, as records do not have VMT overhead, […]

Weiterlesen...
  Mit Zitat antworten Zitat