Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6b23c3832d4e0aedc63e6949d3e7954f34cd377d
Ticket: 652765ffffffffffffffffffffffffffffffffff
errors disappear in trace callbacks
User & Date: duquette on 2004-08-24 07:24:07
Changes

  1. icomment:
    Logged In: YES 
    user_id=372859
    
    By "propagate normally", I mean that if 
    
       rename SomeName SomeOtherName
    
    causes a trace to throw an error, then the error propagates up and is
    returned by "rename".  I think the concern about multiple traces is
    misleading.  After all, why would a rename callback throw an error? 
    I can think of two reasons: 
    
    1. The callback threw an error explicitly, becausing renaming the 
        command will cause the program to misbehave in mysterious
        ways.
    
    2. There's an error in the callback, meaning it didn't do what it was
        supposed to do, meaning that the program is likely to misbehave
        in mysterious ways.
    
    In either case, there's probably no good way to recover from the
    error; it needs to be fixed.  Better that the programmer find out
    ASAP, while they are developing the software.  But as it is, 
    such errors hide and can be monstrously difficult to debug.
    
    Regarding using a more permanent token rather than the command
    name--well, yes, obviously.  If you can.
    
    
    
    
  2. login: "duquette"
  3. mimetype: "text/plain"
  4. username: "duquette"