Artifacts Associated With Ticket 3591522fff
Ticket change [ed230d529b] (rid 103826) by dgp on 2012-11-30 23:52:57:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The recipe catch $script m o return -options $o $m lets me reproduce what evaluation of $script alone would do. Other than the variables m and o and some trivial unimportant things, they are indistinguishable. Most importantly to me they leave the same -errorinfo value in the interp to be captured by another enclosing [catch]. I want some set of options to [try] to be able to do the same thing. Right now, that appears impossible because [try] seems to be pretty insistent on leaving decorations on the errorInfo value. Since I have the [catch; return] combo that does what I want, you might ask why that's not enough. Well there are some places where only a single command will do. A [tailcall try $script] that didn't leave [try] droppings on the stack trace would be nice.
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "18. Commands M-Z"
- title initialized to: "[try] desired missing funciton"
- type initialized to: "RFE"
Ticket change [b84214299f] (rid 128938) by dkf on 2012-12-01 16:50:07:
- icomment:
I'm not sure what the right thing to do here is. The offending message is tclCmdMZ.c:4393 (i.e., the *second* place in the function TryPostBody that looks like it is relevant; the first is in the unwind/limit handling).
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [1910464162] (rid 122758) by ferrieux on 2012-12-01 17:34:09:
- icomment:
As a side note, it turns out that [info errorstack] is unaffected (being only concerned with scope levels, not with internal constructs like [while] or, for that matter, [try] or [catch]): % proc f {} g % proc g {} {try {error FOO} on error {m o} {return -options $o $m}} % f FOO % info errorstack INNER {returnStk FOO} CALL g CALL f % proc f2 {} g2 % proc g2 {} {error FOO} % f2 FOO % info errorstack INNER {returnStk FOO} CALL g2 CALL f2 - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment: