|
2013-11-12
| ||
| 12:42 | • Closed ticket [86fb5ea28e]: Ensembles and info frame lines plus 4 other ch... artifact: 4c89e7d219 user: dkf | |
|
2013-07-10
| ||
| 18:00 | • Pending ticket [86fb5ea28e]. artifact: 4503f3a5fa user: dgp | |
| 17:58 | Fix for [86fb5ea28e]. Test will eventually merge in from tip280-test-coverage. check-in: ca488c3bfe user: dgp tags: trunk | |
| 17:28 | • New ticket [86fb5ea28e] Ensembles and info frame lines. artifact: f492a60b8e user: dgp | |
Ensembles and [info frame] lines
Closed86fb5ea28e5bf689e7924b1de9a1e9aa9454a292Created 13 years agoUpdated 13 years ago
Descriptionplain2013-07-10 17:28:12
$ cat dgp.tcl
proc foo {} {
dict for {a b} {c d} {*}{
{set res [info frame 0]}
}
return $res
}
puts "Should be 3: [dict get [foo] line]"
$ make shell SCRIPT=dgp.tcl
...
Should be 3: 2
Replace the "dict for" with direct call to
"tcl::dict::for" and it works properly.
Problem is that the word number of arguments
is different whether or not we call through the
ensemble. So SetLineInformation(3) isn't correct.
Still puzzling where best to account for this.
Referenced by1
ca488c3bfeFix for [86fb5ea28e]. Test will eventually merge in from tip280-test-coverage. check-in2013-07-10 17:58:45
dgpplain2013-07-10 18:00:39
Fixed on trunk. Leaving in status Pending in case someone else wants to backport to 8.5. It's non-trivial, and I think not worth the bother.
dkf Closed ticket [86fb5ea28e].
[History diff]2013-11-12 12:42:38
Log in (anonymous is fine) to add a comment.