Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b29e8e6d6f844868b5986ff6f929103433b06a57
Ticket: 2431847fffffffffffffffffffffffffffffffff
Junk at start of errorInfo when using [dict get] on arrays
User & Date: dgp on 2008-12-16 22:28:16
Changes

  1. icomment:
    
    I think Alex is correct, and a full Tcl_ResetResult()
    needs to be restored.  See this demo script:
    
    % proc demo {} {
    return -level 0 -code ok -noisy stuff
    dict get {} noex
    }
    % catch demo m o
    1
    % set o
    -noisy stuff -code 1 -level 0 -errorcode NONE -errorinfo {key "noex" not known in dictionary
        while executing
    "dict get {} noex"
        (procedure "demo" line 3)
        invoked from within
    "demo"} -errorline 1
    
    
    See how the "-noisy stuff" is leaking
    into the unrelated error in [dict get].
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"