<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 7, 2016 at 5:42 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">> This is almost exactly the same situation as:<br>
><br>
> foreach foo {bar baz} {<br>
> proc p_$foo {} {<br>
> puts $foo<br>
> }<br>
> }<br>
> p_bar<br>
> p_baz<br>
<br>
</span>Huh? This complains about foo not being known, I think there should be a `global foo` in that procedure?<br></blockquote></div><br>That would do a different wrong thing, specifically the one you originally complained about.<br><div><br></div><div>> I was expecting something like that but apparently this is not achieved via uplevel in `proc variant`?</div><div><br></div><div>How would it know which ones to uplevel?</div><div><br>-- </div><div class="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>