Quote Originally Posted by chronozphere View Post
Btw, is it possible to use Type Parameter bounds, like java has? It means that you can enforce that your type-parameter T must be a derivative of a specific class, like this:
A text worth mentioning: http://sjrd.ftp-developpez.com/tutor...i-generics.pdf.

Answering your question: yes, it is. As you will see in the article, there is few methods to do so. A little extract from the article, which I put below, provides you with an answer:
Code:
type
TStreamGenericType<T: TStream> = class
end;