i try to foreward generics:
program programm1;
uses fgl;
type
generic GDataList<T2> = class
public
item:T2;
end;
generic Gbigclass <T1> = class
public
Glittleitem1:GDataList<T1>;
Glittleitem2:GDataList<T1>;
end;
TBigclass = specialize Gbigclass<Integer>;
var
MyClass: TBigclass;
begin
MyClass := Gbigclass.Create;
end.
on line "Glittleitem1:GDataList<T1>;" i get the Error:
(13,16) Error: Generics without specialization cannot be used as a type for a variable
is there a chance to get it late binded?
Greats Jan_