fpc-devel · 2025-07
- generic forward declaration?7
Are there? Or is there something else? The below compiles. No duplicate TBar. Looks like a forward declaration... program Project1;{$Mode objfpc} type generic…
- generic constraints...5
Currently you can't do type generic TFoo<A> = class procedure Bar; virtual; end; generic FooChild<F: TFoo> = class(F) procedure Bar; override;…
- "class of TFoo".Create7
I stumbled (by accident) on (maybe) a curiosity TFooClass = class of TFoo; can store a class (that must be TFoo or subclass of it). I would have expected that the type…
