Artifacts Associated With Ticket 1553630fffffffff
Ticket change [c98935a978] (rid 122299) by dgp on 2006-09-06 19:44:46:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Question arose on the chat: % catch {subst {0[return -level 0 -code 6 foo]1}} m o 0 % set m 0foo1 % set o -code 0 -level 0 Should [subst] really be swallowing up extension exception codes like that? - foundin initialized to: "obsolete: 8.5a5"
- 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: "[subst] exception treatment"
- type initialized to: "RFE"
Ticket change [50db6e3157] (rid 126047) by dgp on 2006-09-07 03:00:22:
- icomment:
Logged In: YES user_id=80530 It appears that the interface for Tcl_SubstObj() is a contributor to this "design". Since it returns either NULL, or the substituted result, it has no way to indicate other types of exception conditions. Thus, as implemented, [subst] is similarly constrained. Seems similar in spirit to the problem that Tcl_EvalTokens() had.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [bf002da200] (rid 102183) by msofer on 2006-09-30 08:21:35:
- priority changed to: "8"
Ticket change [2a1ec6e518] (rid 118496) by dgp on 2006-11-23 03:21:09:
- assignee changed to: "dgp"
Ticket change [529e1b0d6c] (rid 126342) by dgp on 2006-11-29 20:34:00:
- priority changed to: "5 Medium"
Ticket change [f7f4c437ec] (rid 91456) by dgp on 2007-02-22 02:20:36:
- icomment:
Logged In: YES user_id=80530 Originator: YES Note that this (mis-)behavior appears to be an obstacle to bytecompiling [subst], since any compiled version would have to match these non-standard treatments of exception codes.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [396ba63059] (rid 112388) by dkf on 2007-02-22 05:42:11:
- icomment:
Logged In: YES user_id=79902 Originator: NO The current non-standard exception code handling in [subst] is probably "because it happened to be convenient to implement that way". I'd not stand in the way of any represenation that it is a bug that needs fixing...
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [4c8e322a2b] (rid 126911) by dgp on 2007-02-23 00:45:25:
- icomment:
Logged In: YES user_id=80530 Originator: YES upon further review, the feasibility/ease of bytecompiling [subst] is mostly independent of this issue. Even if [subst] had always handled extension exception codes in a standard way, a byte compiled version of [subst] would still need special crafting to duplicate [subst]'s handling of the break, continue, and return codes from Tcl's built-in set.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [2d6c3c908a] (rid 119066) by dgp on 2007-02-23 00:48:38:
- foundin changed to: "None"
- icomment:
data_type - 360894 Logged In: YES user_id=80530 Originator: YES Doc review also reveals that the behavior noted in the original report here did get documented in Tcl 8.4, so making changes is a matter of a (mildly incompat) Feature Request, not a bug report. Shifting report to the RFE Tracker...
- login: "dgp"
- mimetype: "text/plain"
- subsystem changed to: "45. Parsing and Eval"
- title changed to: "standardize [subst] exception treatment"
- username: "dgp"
Ticket change [fb50df39f3] (rid 92040) by dgp on 2009-10-02 02:16:58:
- closedate changed to: "2009-10-01T19:16:58"
- closer changed to: "dgp"
- icomment:
allow_comments - 1
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- status changed to: "Closed"
- username: "dgp"