<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">Am Mo., 3. Dez. 2018, 00:33 hat Simon Jackson <<a href="mailto:jackokring@gmail.com">jackokring@gmail.com</a>> geschrieben:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
Just an idea.<br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
Class variables. If generics are used, then the same code can be used for differing pointer types. (Classes) as long as a specifier on the "generic class variable" and no generic specialize or <> is in the<br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
class generic x: TObject;<br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
Can it be shared across all generics of a kind?<br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
The code density in the cache would be good for all common generics.<br></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I don't see a use for such a feature. </div><div dir="auto">What if one sets it as a descendant of one class, but another retrieves it as a descendent of a completely different class? You'd have to use separate storage locations then anyway and then you can simply use ordinary class variables. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black"></div></div>
</blockquote></div></div></div>