Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bcf6b6fa96593c41b00588fcd0f21eca10d81058
Ticket: 3033206fffffffffffffffffffffffffffffffff
lib/ttrace.tcl uses ::version as temporary variable
User & Date: dkf on 2010-07-26 05:23:42
Changes

  1. assignee changed to: "dkf"
  2. closedate changed to: "2010-07-25T22:23:42"
  3. closer changed to: "dkf"
  4. icomment:
    
    
    allow_comments - 1
    
    Oh, that's Tcl's variable resolution rules. Yuck. Luckily in this case there's a way to write things that avoids the nastiness, changing (effectively) this:
    
        if {![catch {package require Thread} version]} {
            variable tvers $version
            ...
        }
    
    into this:
    
        if {![catch {
            variable tvers [package require Thread]
        }]} {
            ...
        }
    
    That version is hazard-free.
    
    
  5. login: "dkf"
  6. mimetype: "text/plain"
  7. resolution changed to: "Fixed"
  8. status changed to: "Closed"
  9. username: "dkf"