Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5579a5ec4fb8f56a860bbd965395cc6b3cc054c5
Ticket: 2868499fffffffffffffffffffffffffffffffff
TIP #348: Substituted errorStack
User & Date: dgp on 2010-03-18 00:52:21
Changes

  1. icomment:
    
    um, that's novel. :)
    
    I might be convinced to make this
    one special, but in that case I don't
    think the right thing to do with
    [return -errorstack] is to just let it
    silently fail.  If we are to disallow it,
    raise an error.
    
    I was wondering myself about
    whether [info errostack] would be
    sufficient.  The issue appears to
    come down to whether or not
    the value of -errorstack ought to
    be considered part of the "state"
    of the interp -- those values saved
    and restored by Tcl_*InterpState()
    and cable to be [catch]-ed and
    re-raised by [return -options].  Since
    you call -errorstack a sister of -errorinfo,
    my first assumption is that it is part of
    that state, and needs to be part of that
    save/restore capability, and for that reason
    needs to be writable via the [return] command.
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"