1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
|
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
|
+
+
+
+
+
+
+
+
+
+
|
#}
lappend res [namespace eval ::a y]
} -cleanup {
namespace delete a
rename ::x {}
} -result {:: ::}
proc set2 args {
set {*}$args
}
test trace-21.12 {bug 2438181} -setup {
trace add execution set2 leave {puts one two three #;}
} -body {
set2 a hello
} -returnCodes error -result {wrong # args: should be "puts ?-nonewline? ?channelId? string"}
proc factorial {n} {
if {$n != 1} { return [expr {$n * [factorial [expr {$n -1 }]]}] }
return 1
}
test trace-22.1 {recursive(1) trace execution: enter} {
set info {}
|