Skip to content
Tcl Source Code History Of Ticket 27520c9b17116d8d
Login

History Of Ticket 27520c9b17116d8d

Artifacts Associated With Ticket 27520c9b17116d8d

  1. Ticket change [442b482f47] (rid 200335) by andy on 2022-04-21 21:30:47:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. 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.
      
    5. foundin initialized to: "8.6.12"
    6. is_private initialized to: "0"
    7. login: "andy"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "662c23482b0bf6a505f39e48fb7ad43af8dee4d3"
    10. resolution initialized to: "None"
    11. severity initialized to: "Severe"
    12. status initialized to: "Open"
    13. submitter initialized to: "andy"
    14. subsystem initialized to: "47. Bytecode Compiler"
    15. title initialized to:
      try/finally bytecode optimizer incorrect order of operations
      
    16. type initialized to: "Bug"
  2. Ticket change [550f874598] (rid 200370) by sebres on 2022-04-26 12:11:36:

    1. 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].
      
    2. login: "sebres"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [83ba32c449] (rid 200384) by sebres on 2022-04-26 12:29:16:

    1. closedate changed to: "2459696.02033138"
    2. closer changed to: "sebres"
    3. icomment: "Fixed (merged in current 8.6)"
    4. login: "sebres"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"