<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Mattias Gaertner via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Do., 25. Mai 2023, 08:23:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 25 May 2023 07:55:39 +0200<br>
Sven Barth via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank" rel="noreferrer">fpc-pascal@lists.freepascal.org</a>> wrote:<br>
<br>
>[...]<br>
> But this is what "managed type" *means*: that the compiler and RTL<br>
> will make sure that it's correctly freed as long as nothing<br>
> unexpected happens.<br>
<br>
... and exceptions are expected.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Depends on the circumstances: in code with disabled implicit exception frames, but managed types exceptions are to be considered unexpected. But otherwise they are indeed expected. </div><div dir="auto"><br></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">
<br>
Maybe better: As long as the user does not break the rules.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Agreed. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div></div>