<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Sep 21, 2014 at 9:15 AM, Chriss Kalogeropoulos <span dir="ltr"><<a href="mailto:iz.iznogood@gmail.com" target="_blank">iz.iznogood@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p dir="ltr">Hi Sven,</p>
<p dir="ltr">This design means that old classes need to be subclassed in order to enable this feature, correct? <br>
Would it be possible instead of declaring this on the class definition, to declare it on the actual variable? Something like</p>
<p dir="ltr">var aArcObj: TFooObj; refcounted;</p>
<p dir="ltr">Or similar.</p>
<p dir="ltr">This would allow the same classes to be used both ways.</p>
<p dir="ltr">Also how about a smart pointer record implementation with generics? Is it possible ?</p>
<p dir="ltr">Thanks,<br>
Chriss</p></blockquote></div><div><br></div><div>Or enabling via compiler switch, like:</div><div><br></div><div><a href="http://docwiki.embarcadero.com/RADStudio/XE4/en/Automatic_Reference_Counting_in_Delphi_Mobile_Compilers">http://docwiki.embarcadero.com/RADStudio/XE4/en/Automatic_Reference_Counting_in_Delphi_Mobile_Compilers</a><br></div><div><br></div>-- <br>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a>
</div></div>