<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-27 18:43 GMT-03:00 Joao Morais <span dir="ltr"><<a href="mailto:l@joaomorais.com.br" target="_blank">l@joaomorais.com.br</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Correct. The feature I was talking about is something like:<br>
<br>
generic TMyGeneric<T: TMyType><br>
<br>
And TMyType is a class. In this case the compiler knows I am talking about a generic for a class type and a "generic as Java" becomes possible.</blockquote><div><br><br></div><div>Seems that you are looking to class type constraints:<br>
<br><a href="http://docwiki.embarcadero.com/RADStudio/XE4/en/Constraints_in_Generics">http://docwiki.embarcadero.com/RADStudio/XE4/en/Constraints_in_Generics</a><br><a href="http://blogs.teamb.com/craigstuntz/2008/08/29/37832">http://blogs.teamb.com/craigstuntz/2008/08/29/37832</a><br>
<br></div><div>Not sure if will allows to do what you are looking for<br></div><div><br></div><div>Luiz<br></div></div></div></div>