<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-04-11 23:36 GMT+02:00 Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span>:<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">I know this is a rather constructed example, but it's similar to the C++<br>
code we had at work, so it's code that can happen in the real world.<br>
If we don't find a way to solve this problem then I'm afraid that I<br>
won't include your changes in trunk, cause I don't want to open that can<br>
of worms.<br></blockquote><div><br></div><div>Eeeee? I am a little shocked by your arguments because that kind of bug is possible since we have initialization/finalization section and uses section in interface/implementation section. *The programmer must be aware of*. The mentioned bugs are here a looong time. For example fixed by me for Lazarus: <a href="http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&root=lazarus&sortby=date&revision=49547" target="_blank">http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&root=lazarus&sortby=date&revision=49547</a></div><div><br></div><div>The reason of memory leak in mentioned rev was the same as presented by your example but in context of initialization/finalization. It was raised in Lazarus in random cases (installed packages combination).</div><div><br></div><div>Pascal was never safe language because we have ASM, Pointers and other stuff. The pros is much more than cons for management operators (SmartPointer + Generics.Collections is awesome and big step forward). Management operators is powerfully syntax and I don't want to drop them because it is base for my next improvements. No one is forced to using management operators. You are killing the whole tree. It is like atom power. You can create nuclear weapon to kill, but you can use that power to build nuclear power plant.</div><div><br></div><div>Seems like my existence here on mailing list and branches has no sense. I will drop my branches here and move my work to github. What is the sense working here if all work is rejected?</div><div><br></div><div>My github branch will be often synchronized with core trunk. Anyway good luck and thanks for "maciej" branch! :)</div></div>-- <br><div><div dir="ltr"><div>Best regards,<br>Maciej Izak</div></div></div>
</div></div>