![]() |
As Delphi generics are not supported for free functions, wrap them in a record contai
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, […]
![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:59 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz