Artifacts Associated With Ticket 2502002
Ticket change [fc60492d24] (rid 108228) by dgp on 2009-01-12 18:01:17:
- assignee initialized to: "kennykb"
- cmimetype initialized to: "text/plain"
- comment initialized to:
When Tcl_NRCmdSwap() is called, there is no call to TEOV_PushExceptionHandlers(), so no handling of toplevel exception and no appending to -errorinfo when TCL_ERROR arises. This seems to be the right feature set for [namespace import]ed commands, which is the sole Tcl_NRCmdSwap() caller in our sources. It's less clear that other T_NRCS() callers want the same thing. At least the docs need to be clearer about it.
- foundin initialized to: "obsolete: 8.6b1"
- 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: "45. Parsing and Eval"
- title initialized to: "Tcl_NRCmdSwap prevents exception handling"
- type initialized to: "Bug"
Ticket change [8c01f3a13a] (rid 127678) by msofer on 2009-01-13 02:50:48:
- icomment:
I call a possible doc bug: T_NCRS is meant to do precisely what imports do, replace the original command with a new one. In particular, the swap should not add new exception handlers - exceptions are treated only by the original command, not by the replacement. If both the original and the replacement commands are meant to handle exceptions the proper approach is to mimic what aliases do: eval a new objc/objv.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [a9a41751f6] (rid 99181) by dgp on 2009-01-13 04:41:08:
- icomment:
Thanks for commenting miguel. The matter arises as I look into Tcl Bug 2486550. TclObjInvoke() directly calls a cmdPtr->objProc just like the InvokeImportedCmd() used to do. Since T_NCRS() solved one, it's a candidate to solve the other as well. But TOI does include code to append to the -errorinfo .
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [70f62d3f16] (rid 100579) by dgp on 2009-01-13 04:53:39:
- icomment:
If TclNREvalObjv() were revised so that a T_NCRS() call still tried a TEOV_PEH() call before skipping the command resolution stuff, then InvokeImportedCmd() could still run exactly as it does now by just passing the TCL_EVAL_NOERR flag, and TOI could use the same routine not passing it.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [f72e576d44] (rid 91336) by kennykb on 2009-01-13 08:19:33:
- assignee changed to: "msofer"
- icomment:
Is there a reason this is assigned to me? I committed the NRE documentation while miguel was _hors de combat_, but I think he'd be a better choice to examine it first.
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
Ticket change [2023ebec7a] (rid 91266) by dgp on 2009-01-13 11:21:59:
- icomment:
when I first filed, I assumed miguel was still incommunicado, and also assumed this was basically a docs bug. Neither is turning out to be completely true.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [f544685a41] (rid 130079) by msofer on 2009-05-01 08:24:16:
- priority changed to: "6"
Ticket change [c57fde0d48] (rid 112010) by msofer on 2009-05-01 08:26:40:
- priority changed to: "7 High"
Ticket change [65f6a158d2] (rid 102634) by dgp on 2013-03-19 20:35:49:
- icomment:
status?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [6c9ec71aa4] (rid 128544) by msofer on 2013-03-19 20:52:30:
- icomment:
dgp's proposed solution sounds good.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [bbf52c8dbf] (rid 129575) by dgp on 2013-04-09 03:08:16:
- icomment:
See branch bug-2502002 for work in progress.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [8aeb2fe0dd] (rid 133535) by dgp on 2013-08-29 19:20:37:
- assignee changed to: "dgp"
- closedate changed to: "2456534.30599273"
- closer changed to: "dgp"
- comment changed to:
When Tcl_NRCmdSwap() is called, there is no call to TEOV_PushExceptionHandlers(), so no handling of toplevel exception and no appending to -errorinfo when TCL_ERROR arises. This seems to be the right feature set for [namespace import]ed commands, which is the sole Tcl_NRCmdSwap() caller in our sources. It's less clear that other T_NRCS() callers want the same thing. At least the docs need to be clearer about it.
- icomment: "merged to trunk."
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- severity changed to: "Minor"
- status changed to: "Closed"