Skip to content
Tcl Source Code History Of Ticket 3591522fff
Login

History Of Ticket 3591522fff

Artifacts Associated With Ticket 3591522fff

  1. Ticket change [ed230d529b] (rid 103826) by dgp on 2012-11-30 23:52:57:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      The recipe
      
      catch $script m o
      return -options $o $m
      
      lets me reproduce what evaluation of $script
      alone would do.  Other than the variables m and o
      and some trivial unimportant things, they are
      indistinguishable.  Most importantly to me
      they leave the same -errorinfo value in the
      interp to be captured by another enclosing [catch].
      
      I want some set of options to [try] to be able to
      do the same thing.  Right now, that appears
      impossible because [try] seems to be pretty
      insistent on leaving decorations on the errorInfo
      value.
      
      Since I have the [catch; return] combo that does what
      I want, you might ask why that's not enough.   Well
      there are some places where only a single command
      will do.
      
      A [tailcall try $script] that didn't leave [try] droppings
      on the stack trace would be nice.
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "18. Commands M-Z"
    11. title initialized to: "[try] desired missing funciton"
    12. type initialized to: "RFE"
  2. Ticket change [b84214299f] (rid 128938) by dkf on 2012-12-01 16:50:07:

    1. icomment:
      I'm not sure what the right thing to do here is.
      
      The offending message is tclCmdMZ.c:4393 (i.e., the *second* place in the function TryPostBody that looks like it is relevant; the first is in the unwind/limit handling).
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [1910464162] (rid 122758) by ferrieux on 2012-12-01 17:34:09:

    1. icomment:
      As a side note, it turns out that [info errorstack] is unaffected (being only concerned with scope levels, not with internal constructs like [while] or, for that matter, [try] or [catch]):
      
      % proc f {} g
      % proc g {} {try {error FOO} on error {m o} {return -options $o $m}}
      % f
      FOO
      % info errorstack
      INNER {returnStk FOO} CALL g CALL f
      
      % proc f2 {} g2
      % proc g2 {} {error FOO}
      % f2
      FOO
      % info errorstack
      INNER {returnStk FOO} CALL g2 CALL f2
      
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"