Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1f3ba9289b30e16c3b6dc0335842ec13e57daa8c
Ticket: 1397843fffffffffffffffffffffffffffffffff
write trace on ::errorInfo is broken
User & Date: dgp on 2006-01-07 01:55:59
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    In the Tcl 8.4.12 version of
    Tcl_AddObjErrorInfo() (in
    Revision 1.75.2.19 of tclBasic.c)
    some calls can result in two
    separate calls of Tcl_ObjSetVar2()
    on ::errorInfo -- the first call
    at line 5303, and the second call
    at line 5329.
    
    This would trigger your write trace
    twice, yes?
    
    Your "half-baked" patch would only 
    trigger your write trace once, it
    appears to me.
    
    Is that level of incompatibility
    also a problem for you?  
    
    I'm not inclined to force variable
    write traces to happen when no
    variable write is in fact taking
    place.  I'm looking into detecting
    the presence of write traces, though,
    and when present, going ahead and
    writing to ::errorInfo .  I need to
    examine the consequences.
    
    If you can offer additional detail
    on when/ how many write trace triggers
    you really need (do you really need
    every Tcl_AddObjErrorInfo() call?), it
    might help me craft a better solution.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"