Artifacts Associated With Ticket 27520c9b17
Ticket change [442b482f47] (rid 200335) by andy on 2022-04-21 21:30:47:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
There appears to be a problem with the bytecode optimizer for [try]. If the argument after "finally" contains substitutions, they are not evaluated until it actually comes time to execute the "finally" block. Consider: try {puts a} finally [puts b] This should print "b a" (newline in between) because the [puts b] needs to be evaluated in the process of assembling the command line, before even executing it. However, it prints "a b" instead. If the command line is instead written: {*}[list] try {puts a} finally [puts b] it prints "b a" as expected. This is because the bizarre invocation of [list] bypasses the bytecode optimizer, allowing the normal Tcl order of operations to prevail. - foundin initialized to: "8.6.12"
- is_private initialized to: "0"
- login: "andy"
- priority initialized to: "5 Medium"
- private_contact initialized to: "662c23482b0bf6a505f39e48fb7ad43af8dee4d3"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "andy"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to:
try/finally bytecode optimizer incorrect order of operations
- type initialized to: "Bug"
Ticket change [550f874598] (rid 200370) by sebres on 2022-04-26 12:11:36:
- icomment:
I fixed that (already in 2019) but somehow missed to provide the fix in tcl-core. Rebased now to related fossil revision (could be safely merged in current 8.6) as branch [./vdiff?from=dc37fb64f77b9c41&to=fba9450772078753|bug-27520c9b17].
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [83ba32c449] (rid 200384) by sebres on 2022-04-26 12:29:16:
- closedate changed to: "2459696.02033138"
- closer changed to: "sebres"
- icomment: "Fixed (merged in current 8.6)"
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"