tcl-trace
- From: Florian.Murr@xxxxxxxxxxx
- Date: 28 Nov 2006 06:57:49 -0800
I am using tcl-trace since a very long time, but today I am baffled at
the following behaviour (may be I am just overworked ;-):
proc testeTclTrace {} {
puts "[info level 0] Tcl$::tcl_patchLevel"
set ::a 0
proc ::trc {args} { puts " [info level 0] a = [set ::a]" }
trace add variable ::a {write unset} "::trc"
incr ::a
trace add variable ::a {write unset} "::trc"
incr ::a
trace add variable ::a {write unset} "::trc"
unset ::a
}
I get the following result:
testeTclTrace Tcl8.4.13
::trc ::a {} write a = 1
::trc ::a {} write a = 2
::trc ::a {} write a = 2
Where is the 'unset'-trace call?
Why do I get the 'write'-trace multiple times? (I thought, when I
register the very same command twice, it still gets called just once?!)
regards,
- Florian
.
- Follow-Ups:
- Re: tcl-trace
- From: Eric Hassold
- Re: tcl-trace
- From: Paul
- Re: tcl-trace
- Prev by Date: Re: Working example of ncgi usage
- Next by Date: Re: Is there a way to make 'wish' read standard input?
- Previous by thread: tk_choosedirectory with new folder?
- Next by thread: Re: tcl-trace
- Index(es):