Artifacts Associated With Ticket 0b8c387cf7c00a93
Ticket change [b810b61f67] (rid 145355) by dgp on 2016-03-08 18:03:12:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Tcl_VarEval() is a deprecated routine. To move toward its elimination, we at least must stop using it ourselves. It is used in the server socket accept callback evaluation.
- foundin initialized to: "trunk"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "27. Channel Types"
- title initialized to: "Stop using deprecated Tcl_VarEval()"
- type initialized to: "Bug"
Ticket change [1568a158ae] (rid 145359) by dgp on 2016-03-08 18:07:47:
- icomment:
Branch bug-0b8c387cf7 has a proposed revision to do away with the Tcl_VarEval() call.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [f421606c35] (rid 145360) by dgp on 2016-03-08 18:17:41:
- assignee changed to: "jan.nijtmans"
- icomment:
The proposed revision has been written to reproduce the behavior of the Tcl_VarEval() call, which in the long run may not be the best idea. The Tcl_VarEval() routine builds and evaluates a script, not a command. Although for some time we've been documenting that server socket accept callbacks are single commands, the implementation has never agreed. See http://core.tcl.tk/tcl/info/2957688 Possibly much worse, there is no control in place to determine the context of the callback script evaluation. It is evaluated in whatever context is current in the interp, whether that be a namespace, or the body context of some invocation of some proc. Most callbacks in Tcl are forced to evaluate in global context for predictable behavior. It's surprising to me that's not been done with server socket accept callbacks, but Tcl_VarEval() just evaluates where it is. It would be easy to change this in the revised implementation by just adding the TCL_EVAL_GLOBAL flag to the Tcl_EvalObjEx() call. I can't think of a good reason not to make this change now that it's easy. Review and comment invited.
- login: "dgp"
- mimetype: "text/plain"
Ticket change [659cdbb80f] (rid 145706) by dgp on 2016-03-17 13:26:34:
- assignee changed to: "dgp"
- icomment:
Thanks for confirming TCL_EVAL_GLOBAL is the right thing. Merged to trunk.
- login: "dgp"
- mimetype: "text/plain"
Ticket change [65dd2a1a32] (rid 145707) by dgp on 2016-03-17 13:26:50:
- closedate changed to: "2457465.0603124"
- closer changed to: "dgp"
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"