<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Em 27/02/14 19:56, luiz americo pereira
camara escreveu:<br>
</div>
<blockquote
cite="mid:CAMa0j60+Lav-zTkm86RHpt03+QDq8osxbkLz1zQr0RNTUFUsHA@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://docwiki.embarcadero.com/RADStudio/XE4/en/Constraints_in_Generics">http://docwiki.embarcadero.com/RADStudio/XE4/en/Constraints_in_Generics</a><br>
<a moz-do-not-send="true"
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>
</div>
</div>
</blockquote>
<br>
Kind of. I usually want some type safety in a generic
implementation. A couple of weeks ago I needed a generic type as an
abstract class (changed the approach, don't remember details). Most
of the time reintroduce some methods casting the inherited one
solves the problem.<br>
<br>
Thanks for the links! I didn't know the actual Delphi syntax =)<br>
<br>
<br>
</body>
</html>