Artifacts Associated With Ticket 684982ffffffffff
Ticket change [4de1243333] (rid 127133) by dgp on 2003-02-11 23:09:26:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
One of the flag values that can be set in interp->evalFlags is TCL_BRACKET_TERM. Setting this causes both Tcl_EvalEx() and TclSetByteCodeFromAny() to parse only to the next unquoted close-bracket when do evaluation or compilation in the interp. The only user of this power appears to be the command substitution portion of the [subst] command. It seems to me that the same effect could be achieved by appropriate calls to Tcl_ParseCommand() with its documented "nested" argument, rather than hacking around the internals of the interp structure.
- foundin initialized to: "None"
- 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: "remove TCL_BRACKET_TERM"
- type initialized to: "RFE"
Ticket change [22769c8cfc] (rid 130754) by dgp on 2003-02-12 06:19:32:
- icomment:
Logged In: YES user_id=80530 Using the Tcl test suite as a poor man's coverage test for the Tcl source code, it appears that the code testing for TCL_BRACKET_TERM being set in TclSetByteCodeFromAny() is never active. If that's true, then TCL_BRACKET_TERM appear to exist only to configure a particular mode of operation in Tcl_EvalEx(). Would be better not to call Tcl_EvalEx() at all, but use Tcl_ParseCommand() and friends within Tcl_SubstObjCmd
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [819d7014c9] (rid 117069) by dgp on 2003-02-12 07:03:03:
- icomment:
Logged In: YES user_id=80530 The TclPro program tclcompiler directly calls TclSetByteCodeFromAny, so it's possible it cares about this TCL_BRACKET_TERM matter.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [dcd8fe2355] (rid 114555) by dkf on 2003-02-12 16:30:26:
- icomment:
Logged In: YES user_id=79902 If you can figure out how to change Tcl_SubstObj() to not use TCL_BRACKET_TERM, you have my blessing to do it that way. Personally, I think it is getting very close to cargo-cult junk, and it is certainly making other parts of the core more complex. (FWIW, I looked into dumping the flag when I split [subst] into two parts, but got lost in the tangle below and gave up.)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [ffddeed064] (rid 108837) by dgp on 2003-02-13 09:03:39:
- icomment:
Logged In: YES user_id=80530 there's probably an opportunity to get rid of iPtr->termOffset as well.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [a54f6d7b0a] (rid 110351) by dgp on 2003-03-05 13:58:03:
- assignee changed to: "dgp"
Ticket change [78338fd7d8] (rid 89915) by dgp on 2003-03-09 04:40:55:
- icomment:
Logged In: YES user_id=80530 this patch includes the patch for FR 536831, but also includes the removal of lots of dead code, including TCL_BRACKET_TERM, iPtr->termOffset, and the "nested" argument to TclCompileScript. None of this is needed after [subst] uses more standard means to do its work.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "684982.patch" [22aff84b4f] (rid 130795) by dgp on 2003-03-09 04:40:55.
Ticket change [c06cfd1574] (rid 102400) by dgp on 2003-03-09 04:40:56:
- icomment:
File Added - 44459: 684982.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [099e63aefe] (rid 113687) by dgp on 2003-03-13 09:39:58:
- icomment:
File Added - 44904: 684982-alt.patch Logged In: YES user_id=80530 Alternative patch encloses the alternative patch for Tcl FR 536831
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "684982-alt.patch" [c999b7e1bd] (rid 122315) by dgp on 2003-03-13 09:39:58.
Ticket change [a466946050] (rid 110199) by dgp on 2003-03-13 10:00:33:
- closedate changed to: "2003-03-13T03:00:33"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 alternative patch committed to HEAD. test away!
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"
- username: "dgp"