<div dir="ltr">What about adding support for destructors to (advanced) records (and/or inhertiance)?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 20, 2014 at 6:36 AM, Fabrício Srdic <span dir="ltr"><<a href="mailto:fabricio.srdic@gmail.com" target="_blank">fabricio.srdic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello,<br><br></div>In platforms with managed code (.NET, Java), objects are automatically freed by the memory manager / garbage collector.<br><br></div><span lang="en"><span>Would not it be</span> <span>interesting to have</span> <span>a similar</span> <span>feature in</span> FPC<span>?</span></span><div><span lang="en"><span><br>For example,</span> <span>through a</span> root <span>class where its objects are counted by reference, like the TInterfacedObjects.</span></span><span lang="en"><span><span lang="en"><span> Thus</span><span>, the programmer</span> <span>would be free</span> <span>from having to manually</span> <span>release objects</span><span>.</span></span></span><span><br><br></span></span></div><div><span lang="en"><span>Best regards<br></span></span></div><span lang="en"><span></span></span><span lang="en"><span></span></span></div>
<br>_______________________________________________<br>
fpc-devel maillist  -  <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a><br>
<br></blockquote></div><br></div>