|
2016-07-09
| ||
| 14:30 | • Closed ticket [bd7f17bce8]: TCL_EVAL_INVOKE passed to *EvalObjEx* which does not... artifact: 5020edad22 user: dgp | |
|
2016-07-07
| ||
| 07:48 | Merge core-8-6-branch: New tests to demo the remaining flaw in ensemble dispatch revisions. Itcl 4 ... check-in: ded621ba1e user: jan.nijtmans tags: trunk | |
|
2016-07-06
| ||
| 15:12 | [bd7f17bce8] Revise ensemble dispatch to call TclNREvalObjv() which supports the TCL_EVAL_INVOKE fla... check-in: 3e81a6e8f0 user: dgp tags: core-8-6-branch | |
| 13:31 | • Ticket [bd7f17bce8] TCL_EVAL_INVOKE passed to *EvalObjEx* which does not support... artifact: 939fb2289d user: dgp | |
|
2016-07-05
| ||
| 19:55 | • Ticket [bd7f17bce8]: 3 changes artifact: 81881772e4 user: dgp | |
| 18:09 | • New ticket [bd7f17bce8]. artifact: 8a66bf236c user: dgp | |
TCL_EVAL_INVOKE passed to *EvalObjEx* which does not support it
Closed / Fixedbd7f17bce83178247535de9fed0fd4c87a2c0fadCreated 10 years agoUpdated 10 years ago
Descriptionplain2016-07-05 18:09:21
The Tcl*EvalObjv*() family of routines supports the TCL_EVAL_INVOKE flag to revise the evaluation sequence in ways that match the needs of a re-invocation model of a command. Examples include aliases, ensemble dispatch, [apply], oo forwards. The bug is that currently ensemble dispatch passes the TCL_EVAL_INVOKE flag to the routine TclNEEvalObjEx() which is not in that family, and which does not in its comments claim to support that flag. In fact it does not fully support that flag. It only does so in the particular case when the objPtr value to be evaluated is a canonical list, which it always has been up until recently.
Referenced by2
ded621ba1eMerge core-8-6-branch: New tests to demo the remaining flaw in ensemble dispatch revisions. Itcl 4 also demonstrated these [bd7f17bce8] Revise ensemble dispatch to call TclNREvalObjv() which supports the TCL_EVAL_INVOKE Simplify all the Tcl_NRPostProc declarations Create and use a utility Tcl_NRPostProc when decr ref count of values is all that is needed Bugfix [5d7ea04580]. Treat .cmd and .ps1 files are executable on Windows check-in2016-07-07 07:48:533e81a6e8f0[bd7f17bce8] Revise ensemble dispatch to call TclNREvalObjv() which supports the TCL_EVAL_INVOKE flag that is needed. check-in2016-07-06 15:12:53
dgpplain2016-07-05 19:55:22
Making Tcl_EvalEx() and similar support the flag is straightforward. See branch bug-bd7f17bce8. Supporting the flag in the bytecode engine appears far more difficult as there appears to be no existing flag support at all there.
dgpplain2016-07-06 13:31:37
The best short term fix appears to be that invokers should be restricted to calling the *EvalObjv* family in order to impose the TCL_EVAL_INVOKE flag.
dgpplain2016-07-09 14:30:37
Fixed for Tcl 8.6.6
Log in (anonymous is fine) to add a comment.