<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2018-01-30 8:34 GMT+01:00 Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The question is whether Delphi's behaviour is intentional. </blockquote><div><br></div><div>Sadly it is intentional (but undocumented), the facts:</div><div><br></div><div>* Barry Kelly compiler guy post</div><div>* Works with all known Delphi versions</div><div>* I've checked this for NG compiler - also works like in classic Delphi (especially this point means that the "feature" is 

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">intentional</span>

)</div></div><div><br></div><div>Seems like the SCOPEDINTERFACEDESTROY mode-switch is necessary. The question is:</div><div><br></div><div>would we like to enabling this for all Delphi modes?</div><div><br></div><div>the approach with "with" for "scoping" seems more proper even in Delphi mode. Probably SCOPEDINTERFACEDESTROY should stay off for all modes including Delphi modes.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Best regards,<br>Maciej Izak</div></div></div>
</div></div>