<p>Am 11.04.2016 08:37 schrieb "Maciej Izak" <<a href="mailto:hnb.code@gmail.com">hnb.code@gmail.com</a>>:<br>
> Thanks for introduction. Workaround is not a case, eventually patch to fix order of class constructor/destructor and variable implicit initialization/finalization (as mentioned in <a href="http://bugs.freepascal.org/view.php?id=29245">http://bugs.freepascal.org/view.php?id=29245</a> ). Anyway I do research in this direction to cover all possible usage of new operators (seems like Default intrinsic is the last one). </p>
<p>There is another problem that occurred <a href="http://to.me">to.me</a> after my previous mail. Have you ever heard of the "static initialization order fiasco"? I've stumbled upon that a few weeks ago at work with C++ and was glad that we don't have that problem in Pascal, but with the new management operators and the need to have global variables be initialized correctly as well this would change - which would be very bad as this is a hard to debug problem.<br>
I'll provide you with an example when I'm back home again in the evening.</p>
<p>> Sven, could you look at topic "Management operators AddRef and Copy vs Copy" thread? New operators are ready for test in branch, anyway we can adjust the naming of AddRef and Copy. Florian proposed "Clone" (instead of Copy) and "Copy" (instead of AddRef).</p>
<p>I've yet to find a quiet minute to digest that one :P</p>
<p>Regards,<br>
Sven</p>