<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-09-14 16:23 GMT+02:00 Mark Morgan Lloyd <span dir="ltr"><<a href="mailto:markMLl.fpc-pascal@telemetry.co.uk" target="_blank">markMLl.fpc-pascal@telemetry.co.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'd be far happier if there were provision for declaring a temporary "shortcut" symbol:<br>
<br>
with shortcut: TSomething= TreeRoot.SubDirs[Low(TreeRoot.<u></u>SubDirs)]^ do<br>
begin<br>
shortcut.DirLogged := true;<br>
shortcut.DirHatFocus := false;<br>
shortcut.SubDirsExpanded := true;<span class=""><br></span></blockquote></div><br>Yes, something close to alias in SQL, instead of plain elision which "with" currently performs. This would allow for a clearer writing without the pitfalls of the Pascal "with".<br clear="all"><div><br></div>-- <br>Frederic Da Vitoria<br>(davitof)<br><br>Membre de l'April - « promouvoir et défendre le logiciel libre » - <a href="http://www.april.org" target="_blank">http://www.april.org</a><br>
</div></div>