I have a doubt about generics. When I define a new class, as following
TMyLyst=specialize TFPGObjectList<TMyClass>
and I want to add to it some member (i.e. fields/properties/methods), for example:
TMyLyst=specialize TFPGObjectList<TMyClass>
procedure proc1;
end;
I have a sintax error. To circumvent the problem I must to derive a subclass and then add to it the new members, as in the following:
TDerivedMyList=class(TMyLyst)
procedure proc1;
end;
This is a desidered feauture of syntax or is an issue?