Skip to content
Tcl Source Code History Of Ticket 916871ffffffffff
Login

History Of Ticket 916871ffffffffff

Artifacts Associated With Ticket 916871ffffffffff

  1. Ticket change [2174be3c9d] (rid 130585) by eriklns on 2004-03-15 20:47:12:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The manpage for [catch] mentions as the cases that are
      trapped:
      - errors
      - exceptional returns
      
      About the latter, it leaves for the user to refer to
      "tcl.h" to look up the complete list of return codes
      that are trapped, while explaining some of them later
      in the text (break, continue).
      
      This leaves much room for misinterpretation.
      I think it is better to:
      - adequatel define the term `exceptional return'
      - explicitly mention all the Tcl commands and
      corresponding return codes that are trapped
      
      A special cases of misunderstanding is the "normal
      return" which in this context is considered an
      "exceptional return" because it appears to be trapped:
      
      proc catchReturn {} {
          if {[catch {
              return
          } err]} {
          puts $err
          }
      }
      catchReturn
      
      
      Sincerely,
      
      Erik Leunissen
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "eriklns"
    9. subsystem initialized to: "None"
    10. title initialized to: "[catch] docs should define `exceptional returns'"
    11. type initialized to: "Bug"
  2. Ticket change [fa984dc475] (rid 91903) by eriklns on 2004-03-16 04:20:08:

    1. closedate changed to: "2004-03-15T21:20:08"
    2. closer changed to: "eriklns"
    3. status changed to: "Deleted"