Skip to content
Tcl Source Code History Of Ticket 523900ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 523900ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 523900ffffffffffffffffffffffffffffffffff

  1. Ticket change [4f7fa77a07] (rid 125837) by nobody on 2002-02-28 16:16:13:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      (summary of previous discussions with Jeff, Miguel et
      al)
      
      Idea: errorInfo gives only static source-level info
      (line numbers and source excerpts), but not the actual
      arguments gotten by the functions on the stack.
      
      (1) This proposal is about creating a second global
      variable, ::errorStack, which would be primarily a Tcl
      list (until somebody asks for its string rep of
      course), into which we'd stick all the dynamic info we
      miss in errorInfo. The starting point is to store there
      references to the substituted commands-and-args list of
      the calling stack, which are available even at Tcl
      level as [info level $n]. It is easy to do so while
      respecting the current control flow of error stack: at
      each level we store the info pertaining to the current
      level, then we pop back. So this amounts to (in Tcl
      pseudocode):
      
      lappend ::errorStack [info level 0]
      
      at the point where errorInfo is currently being built.
      
      (2) Possible extension to this proposal: faster
      reimplementation of errorInfo, leading to a much faster
      [catch] in the negative (error) case. Principle:
      
      - extend the above mechanism with file and line 
        number info from TIP#86, and store them 
        alongside the [info level]s in errorStack.
      
      - remove all current errorInfo-construction 
        code (especially the line-counting loop !) 
        and reimplement errorInfo with a read trace, 
        reproducing exactly today's syntax but based 
        on the data in errorStack, and only if 
        errorInfo is used (which is not the case of 
        all [catch]es, hence the speed gain !).
      
      I have posted a first step towards this in pure Tcl on
      comp.lang.tcl. But clearly it suffers from all the
      limitations of the current errorInfo construction
      mechanism, which badly interacts with reentrant [eval]
      of the Tcl code in any write trace on errorInfo !
      
      Hence this proposal as a core patch, which would be
      IMHO much more elegant (and simple, and efficient...)
      than this pure-Tcl simulation
      
      
    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: "nobody"
    9. subsystem initialized to: "07. Variables"
    10. title initialized to: "Substituted error stacks"
    11. type initialized to: "RFE"
  2. Ticket change [328845cd72] (rid 93631) by ferrieux on 2002-03-25 23:14:22:

    1. icomment:
      Logged In: YES 
      user_id=496139
      
      The nobody is me: [email protected]
      -Alex
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  3. Ticket change [47bc4ed6b6] (rid 99754) by dgp on 2002-03-25 23:42:42:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Note: this is related to the work I'm doing on TIP 90.
      Please keep me in the loop on this matter (or assign
      this FR to me).
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [99000aea05] (rid 110704) by msofer on 2002-03-26 04:47:27:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      Handing off to Don - this really should be considered
      together with TIP 90.
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  5. Ticket change [e4ac53de2a] (rid 147429) by dgp on 2016-07-02 18:59:57:

    1. assignee changed to: "ferrieux"
    2. closer changed to: "nobody"
    3. comment changed to:
      (summary of previous discussions with Jeff, Miguel et
      al)
      
      Idea: errorInfo gives only static source-level info
      (line numbers and source excerpts), but not the actual
      arguments gotten by the functions on the stack.
      
      (1) This proposal is about creating a second global
      variable, ::errorStack, which would be primarily a Tcl
      list (until somebody asks for its string rep of
      course), into which we'd stick all the dynamic info we
      miss in errorInfo. The starting point is to store there
      references to the substituted commands-and-args list of
      the calling stack, which are available even at Tcl
      level as [info level $n]. It is easy to do so while
      respecting the current control flow of error stack: at
      each level we store the info pertaining to the current
      level, then we pop back. So this amounts to (in Tcl
      pseudocode):
      
      lappend ::errorStack [info level 0]
      
      at the point where errorInfo is currently being built.
      
      (2) Possible extension to this proposal: faster
      reimplementation of errorInfo, leading to a much faster
      [catch] in the negative (error) case. Principle:
      
      - extend the above mechanism with file and line 
        number info from TIP#86, and store them 
        alongside the [info level]s in errorStack.
      
      - remove all current errorInfo-construction 
        code (especially the line-counting loop !) 
        and reimplement errorInfo with a read trace, 
        reproducing exactly today's syntax but based 
        on the data in errorStack, and only if 
        errorInfo is used (which is not the case of 
        all [catch]es, hence the speed gain !).
      
      I have posted a first step towards this in pure Tcl on
      comp.lang.tcl. But clearly it suffers from all the
      limitations of the current errorInfo construction
      mechanism, which badly interacts with reentrant [eval]
      of the Tcl code in any write trace on errorInfo !
      
      Hence this proposal as a core patch, which would be
      IMHO much more elegant (and simple, and efficient...)
      than this pure-Tcl simulation
      
    4. icomment:
      
      Did this become TIP 348 ?
      
      Can it now be closed?
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. severity changed to: "Minor"
  6. Ticket change [4b45caaa0d] (rid 147441) by ferrieux on 2016-07-02 22:07:27:

    1. closedate changed to: "2457572.42184597"
    2. closer changed to: "ferrieux"
    3. icomment:
      Yes it did.
      Yes it can.
      
    4. login: "ferrieux"
    5. mimetype: "text/plain"
    6. resolution changed to: "Accepted"
    7. status changed to: "Closed"