Skip to content

Commit ae5fa1d

Browse files
committed
Fix holdted
1 parent 0b5d8d7 commit ae5fa1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.tcl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ proc After {n unit body} {
183183
}]] {*}$argValues]
184184
} else { error }
185185
}
186-
set ::holdted [dict create]
186+
set ::held [dict create]
187187
set ::toHold [dict create]
188188
proc Hold {args} {
189189
set this [uplevel {expr {[info exists this] ? $this : "<unknown>"}}]
@@ -236,11 +236,11 @@ proc StepImpl {} {
236236
if {$lambda ne ""} {
237237
Assert $key has program $lambda
238238
}
239-
if {[dict exists $::holdted $key] && [dict get $::holdted $key] ne $lambda} {
240-
Retract $key has program [dict get $::holdted $key]
239+
if {[dict exists $::held $key] && [dict get $::held $key] ne $lambda} {
240+
Retract $key has program [dict get $::held $key]
241241
}
242242
if {$lambda ne ""} {
243-
dict set ::holdted $key $lambda
243+
dict set ::held $key $lambda
244244
}
245245
}
246246
set ::toHold [dict create]

0 commit comments

Comments
 (0)