Skip to content

Commit

Permalink
Upgrade the remaining uses of [trace variable].
Browse files Browse the repository at this point in the history
Oops.  sync failure.  Ignore this.
  • Loading branch information
dgp committed Nov 8, 2023
1 parent 2447c7a commit edcdcf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generic/itclBase.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static const char safeInitScript[] =
" set ptr [uplevel [list $class $name] $args]\n"
" uplevel [list set itcl-local-$ptr $ptr]\n"
" set cmd [uplevel namespace which -command $ptr]\n"
" uplevel [list trace variable itcl-local-$ptr u \"::itcl::delete object $cmd; list\"]\n"
" uplevel [list trace add variable itcl-local-$ptr unset \"::itcl::delete object $cmd; list\"]\n"
" return $ptr\n"
"}";

Expand Down
2 changes: 1 addition & 1 deletion library/itcl.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ proc ::itcl::local {class name args} {
set ptr [uplevel [list $class $name] $args]
uplevel [list set itcl-local-$ptr $ptr]
set cmd [uplevel namespace which -command $ptr]
uplevel [list trace variable itcl-local-$ptr u \
uplevel [list trace add variable itcl-local-$ptr unset \
"::itcl::delete_helper $cmd"]
return $ptr
}
Expand Down

0 comments on commit edcdcf4

Please sign in to comment.