Skip to content
Tcl Source Code History Of Ticket 1209759
Login

History Of Ticket 1209759

Artifacts Associated With Ticket 1209759

  1. Ticket change [8248eb91ff] (rid 117212) by uring on 2005-05-27 10:56:33:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Have a command, say "ret", which returns the code
      TCL_RETURN, for example as a proc:
      
      proc ret {} { return -code 2 }
      
      ... and a procedure which calls "ret":
      
      Then, running tclsh you get:
      
      % catch ret
      % 2
      % ret
      % foo
      
      But, if you implement the "ret" command in C, for example,
      
      static int
      ret_cmd( ClientData, Tcl_Interp * interp, int, Tcl_Obj
      * const * )
      {
          return TCL_RETURN;
      }
      
      you'll get tclsh oborting:
      
      % load libret.so ;# creates the "ret" command 
      % proc foo {} { ret }
      % catch ret
      % 2
      % foo
      TclUpdateReturnInfo: negative return level
      
      
      
      
    4. foundin initialized to: "obsolete: 8.5a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "uring"
    9. subsystem initialized to: "18. Commands M-Z"
    10. title initialized to:
      TclUpdateReturnInfo() panics when returning TCL_RETURN
      
    11. type initialized to: "Bug"
  2. Ticket change [650f327fe8] (rid 92880) by dkf on 2005-05-27 19:36:58:

    1. assignee changed to: "dgp"
    2. priority changed to: "8"
  3. Ticket change [876961522e] (rid 131691) by dgp on 2005-06-02 03:33:38:

    1. closedate changed to: "2005-06-01T20:33:38"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Can't reproduce this with the
      current development sources.
      Believe this is already fixed
      for Tcl 8.5a3.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Out of Date"
    7. status changed to: "Pending"
    8. username: "dgp"
  4. Ticket change [3b5e80a8b0] (rid 112732) by dgp on 2005-06-02 03:50:17:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      ok, not sure what error I made
      before, but I reproduce it now.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. resolution changed to: "None"
    6. status changed to: "Open"
    7. username: "dgp"
  5. Ticket change [2f0399a591] (rid 92980) by dgp on 2005-06-02 04:38:37:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      ok, for compatibility with earlier
      Tcl releases, we want
      
          return TCL_RETURN;
      
      to mean the same as
      
          return Tcl_SetReturnOptions(interp, Tcl_NewObj());
      
      Committing simple fix to achieve that.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. resolution changed to: "Fixed"
    5. subsystem changed to: "45. Parsing and Eval"
    6. username: "dgp"
  6. Ticket change [8699994937] (rid 131543) by dgp on 2005-06-02 05:19:23:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      revised fix committed that
      should be more efficient.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. status changed to: "Closed"
    5. username: "dgp"
  7. Ticket change [3d309d60eb] (rid 121046) by dgp on 2005-06-02 05:19:24:

    1. closedate changed to: "2005-06-01T22:19:24"
    2. closer changed to: "dgp"