<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Dec 7, 2016 at 5:51 PM, René J.V. Bertin <span dir="ltr"><<a href="mailto:rjvbertin@gmail.com" target="_blank">rjvbertin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wednesday December 07 2016 17:09:35 Brandon Allbery wrote:<br>
> Use a double quoted string and escape anything that needs it (but<br>
> specifically not those variables for which you need the current value).<br>
<br>
</span>I don't think that's going to make things much more readable, would it?<br></blockquote><div><br></div><div>It won't, but that's the best you will do in a stringy language like Tcl (or shells, for that matter).</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> How would it know which ones to uplevel?<br>
<br>
</span>Not "which ones", just `uplevel 1 $code`, just like `proc platform` does.<br></blockquote></div><div class="gmail_extra"><br></div>I don't think that will work; you're looking for a closure here where $pv and $pdv are captured from where the variant is declared, and any other $s are either local or uplevel-ed to where the variant is *run* from.<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>