Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7ed42d931c2c831b785485b27fdfdb7b265ad0aa
Ticket: 1397843fffffffffffffffffffffffffffffffff
write trace on ::errorInfo is broken
User & Date: dgp on 2006-01-07 05:24:52
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    Your write traces on ::errorInfo
    still work in Tcl 8.5.  There's
    no failure to live up to that
    documentation promise.  What has
    changed is the timing of when the
    core writes to the ::errorInfo variable.
    
    The overall aim of the refactor was to reduce
    the use of global variables and encourage use
    of the extended [catch] and corresponding
    Tcl_GetReturnOptions() routine in Tcl 8.5.
    The refactoring effort here was really
    intended to push global variables
    ::errorInfo and ::errorCode into "legacy
    support" status.
    
    Thanks for the additional details
    on notification needs.
    It sounds like what you really are
    looking for is some notification
    from each call to Tcl_LogCommandInfo().
    Each T_LCI() call adds one "level"
    to the -errorinfo return option.
    that is, to the Tcl stack trace.
    
    Perhaps what we really need is a
    new callback hook to provide you
    this notification as part of Tcl's
    official interface?
    
    I'm also still looking into whether
    we can just extend the "legacy support"
    to include reverting to the old
    scheme of multiple appends to ::errorInfo
    when a write trace is in place.  Our
    limited introspection on variable traces
    is making that trickier than expected.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"