Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e7fd45e45cd7b5dd6382a544caf33260a46cbbe0
Ticket: 219336ffffffffffffffffffffffffffffffffff
"info exists" causes read trace
User & Date: nobody on 2000-10-26 05:10:56
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 5283 Bug
    Version: 8.3
    SubmitDate: '2000-04-27'
    LastModified: '2000-05-09'
    Severity: MED
    Status: UnAssn
    Submitter: techsupp
    ChangedBy: hobbs
    OS: All
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name:
    Boris Gontar
    
    ReproducibleScript:
    proc cmd { name1 name2 op } {
        puts "trace called: $name1 $name2 $op"
    }
    
    set x 1
    trace var x r cmd
    info exists x
    
    ObservedBehavior:
    trace called: x  r
    1
    
    DesiredBehavior:
    A query like "info exists" refers to name of variable, not to its value. It should not invoke read trace. The man page for "info exists" mentiones that  the variable is tested for being given a value, but it does not mean reading the value.
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "07. Variables"
  10. title changed to: ""info exists" causes read trace"
  11. type changed to: "Bug"