Holger Flick
Delphi 11.3 has been released today on 2/27/2023! It’s time to have a look at it at How it Works with Holger LIVE! Also, I will be introducing Generics and how you can use them… … Read more
2 years ago in Delphi, English, generics, MVP, vcl, Video0
zarkogajic
Say you have an array of integer values, for example, pages of a document or years when something happened, like years when new Delphi version was released: If you would want to display the above… … Read more
2 years ago in algorithms, Arrays, Delphi, generics0
Erik van Bilsen
This curious little pattern can be helpful for certain problems that involve generics. We’ll look at what it is, and at a couple of use cases for it. What is it? The Curiously Recurring Generic… … Read more
3 years ago in Collections, Delphi, generics, Patterns, Tips & Tricks0
Dalija Prasnikar
In the TCoffeeAndCode session about “Code Profiling, Optimization, Performance, and Memory Leaks”, it has been mentioned that generics are slow. However, no specific details were given, and this topic deserves to be explained in more… … Read more
3 years ago in Delphi, generics, Optimization0
Olaf Monien
Due to an interesting code example, behind which Kim Madsen first suspected a possible bug in the Delphi compiler, I took a closer look at the calling behavior of overloaded methods that also contain generic… … Read more
4 years ago in Allgemein, Delphi, generics0
gabr42
Recently I was extending a swiss-army-knife helper record we are using at work and I noticed a small piece of suboptimal code. At first I let it be as I couldn’t think of a simple… … Read more
6 years ago in Delphi, generics, programming0
Unknown
They say Generics and pointers don’t mix. type PMyThing<T> = ^TMyThing<T> // [DCC Error] E2508 type parameters not allowed on this type TMyThing<T> = record Thing: T; end;Ok, they don’t. But there is a loophole!type… … Read more
13 years ago in Delphi, generics, pointers0
Unknown
From the wishful thinking department, I would love to be able tovar Src: TSomeClass; MyObject : TBoundObject<Boolean>;begin MyObject.Bind(Src, CompilerMagic(TSomeClass.SomeBooleanProperty));end;instead ofvar Src: TSomeClass; MyObject : T… … Read more
14 years ago in bind, Delphi, generics, Wishlist0
Unknown
I wish this was a solution post, but it is a frustration post. I trying to figure out how I can use Ord() to convert an enumerated type to integer or cast an integer to… … Read more
14 years ago in Delphi, Enumerated types, generics0
rlove
The recording of the Generics and Anonymous Methods Session is now available. Thank you to Phil Gilmore for taking the time to present this topic! View Now Online (Progressive Download) Direct Download (MP4) Code and… … Read more
15 years ago in anonymous methods, generics, Recordings, Tips & Tricks0