On 29/07/2025 09:53, Mattias Gaertner via fpc-devel wrote:
On 7/25/25 16:31, Martin Frb via fpc-devel wrote:
But
generic FooChild = class(F)
- F is not a variable
- TFoo in not a type (for somethnig), TFoo is a constraint
The problem is the ambiguity of TFoo, because Delphi (aka modeswi
On Tue, 29 Jul 2025, Mattias Gaertner via fpc-devel wrote:
And each list needs to be
TMyFinalItem1 =
specialize TFeatureXForList<
specialize TFeatureYForList<
specialize TFeatureZForList< specialize TFpgList
>
>
>;
IMO that does no
On 7/25/25 16:31, Martin Frb via fpc-devel wrote:
On 25/07/2025 15:20, Mattias Gaertner via fpc-devel wrote:
On 7/25/25 13:44, Martin Frb via fpc-devel wrote:
Currently you can't do
type
generic TFoo = class
procedure Bar; virtual;
end;
generic FooChild = class(F)
pro
On 25/07/2025 15:20, Mattias Gaertner via fpc-devel wrote:
On 7/25/25 13:44, Martin Frb via fpc-devel wrote:
Currently you can't do
type
generic TFoo = class
procedure Bar; virtual;
end;
generic FooChild = class(F)
procedure Bar; override;
end;
Can you use:
gene
On 7/25/25 13:44, Martin Frb via fpc-devel wrote:
Currently you can't do
type
generic TFoo = class
procedure Bar; virtual;
end;
generic FooChild = class(F)
procedure Bar; override;
end;
Can you use:
generic FooChild = class(specialize TFoo)
procedure Bar; o
Currently you can't do
type
generic TFoo = class
procedure Bar; virtual;
end;
generic FooChild = class(F)
procedure Bar; override;
end;
However, without giving the TFoo you can't do the "Bar; override",
because it wont know that the base class has a virtual Bar method.
In m