Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 481a254e60d63a15d424058aa189cabd41da3beb
Ticket: 3033206fffffffffffffffffffffffffffffffff
lib/ttrace.tcl uses ::version as temporary variable
User & Date: thommey on 2010-07-22 19:39:27
Changes

  1. assignee changed to: "vasiljevic"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The thread package includes lib/ttrace.tcl - loaded by [package require Ttrace] - uses $::version to temporarily store the result of [package require Thread] in a catch ("catch {package require Thread} version"). This global variable is unfortunately very likely to be used by applications (embedders mostly?) to hold their own version number. Eggdrop, for example, protects that variable as read-only with a write trace, causing [package require Ttrace] to fail because it can't write to that variable (and even if it could, it would overwrite Eggdrops version number and existing Tcl scripts for Eggdrop rely on it).
    I'd suggest changing it to anything else or a namespace variable.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "thommey"
  10. subsystem changed to: "80. Thread Package"
  11. title changed to:
    lib/ttrace.tcl uses ::version as temporary variable
    
  12. type changed to: "Bug"