On Wed, Dec 7, 2016 at 6:32 PM, René J.V. Bertin <rjvber...@gmail.com>
wrote:

> In this case it indeed won't work because $code is not evaluated
> immediately inside `proc variant` but is instead used to create a procedure
> that's invoked if the user activates a variant


Right, that was implicit in my description of the problem; there's an
additional level here, and the vars you want need to come from that level,
and Tcl has no good way to do that since it usually requires a closure and
Tcl doesn't do closures.

(iirc you can get into the same mess with python 2, although maybe not in
2.7)

-- 
brandon s allbery kf8nh                               sine nomine associates
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Reply via email to