How to check if TypeIdenitifier(T) is an Object?
- by John
I'm creating a generic list class that has a member of type Array(Array of ).
The problem is the class descruction,because the class is supposed to be used for types from byte to types inheriting TObject.
Specifically:
destructor Destroy;
var elem:T;
begin
/*if(T is Tobject) then //Check if T inherits TObject {Compiler error!}
for elem in…