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...