Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0886a85ad43a1639cc42543204ca7f8dc612c284
Ticket: 2929546fffffffffffffffffffffffffffffffff
"dict with" binds to varibles outside its scope
User & Date: mpdanielson on 2010-01-12 01:11:22
Changes

  1. closedate changed to: "2010-01-11T18:11:22"
  2. closer changed to: "mpdanielson"
  3. icomment:
    
    
    allow_comments - 1
    
    The documentation says the command "executes the Tcl script in body", but it doesn't specify the scope in which the body gets executed. I'd assumed that it executed in a new scope, since silently creating/overwriting a bunch of variables that are not explicitly named in the command seems Perl'ish..., and it certainly complicates code maintenance. But, as pointed out, it is easy to avoid the effect.
    
    
  4. login: "mpdanielson"
  5. mimetype: "text/plain"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"
  8. username: "mpdanielson"