Skip to content
Tcl Source Code View Ticket
Login

View Ticket

"info exists" causes read trace

Closed / Invalid219336ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 05:10:56
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.
hobbsplain2000-11-02 04:28:50
This is the desired behavior, returning compatability to 7.6 info exists (see ChangeLog entry from 1999-08-09  Brent Welch).
Log in (anonymous is fine) to add a comment.