Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 178d59b7597b4459201098d1d4b29fa6b22f0a28
Ticket: 652765ffffffffffffffffffffffffffffffffff
errors disappear in trace callbacks
User & Date: vincentdarley on 2003-06-26 20:43:43
Changes

  1. icomment:
    Logged In: YES 
    user_id=32170
    
    Here are the basic options:
    
    (i) If rename/delete always delete the command/proc in 
    question. This implies either all errors in traces must be 
    ignored, or an error in a trace stops the execution of any 
    other trace, but lets the delete still happen afterwards 
    anyway. In any case, if the command in question has 
    a 'Tcl_CmdDeleteProc' which itself wants to create an error 
    message, that error would overwrite any error thrown by a 
    trace.
    
    (ii) If rename/delete are (like variable 'unset' traces) allowed 
    to fail with an error, then things are conceptually much 
    cleaner: the first trace which throws an error aborts the 
    operation. However, this is an overall change in Tcl's 
    documented behaviour, and would require quite careful coding 
    to get right.
    
    
    
  2. login: "vincentdarley"
  3. mimetype: "text/plain"
  4. username: "vincentdarley"