Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d950e736d11c501df2764eac8d33f6812c2c424e
Ticket: 528448ffffffffffffffffffffffffffffffffff
Tcl_UpdateLinkedVar doesn't report error
User & Date: nobody on 2002-03-11 11:28:34
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    If I have a write trace on a linked variable and my C
    code calls
    Tcl_UpdateLinkedVar, the trace gets invoked.  But if
    any errors
    occur during the trace code, they are ignored.
    
    It looks to me as if Tcl_UpdateLinkedVar calls
    Tcl_SetVar;
    its return value indicates whether the call was
    sucessul or not.
    But Tcl_UpdateLinkedVar doesn't test the value returned
    from
    Tcl_SetVar, and since it returns void there is no way
    to
    communicate any error back to the C code.
    
    A question to comp.lang.tcl has evoked no replies.  Is
    this a bug,
    or am I missing something?
    
    This code seems to be unchanged, except for
    objectification
    of the Tcl_SetVar call, for a very long time.
    
    Note the email address given *is* valid!
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "09. Linked C Variables"
  10. title changed to: "Tcl_UpdateLinkedVar doesn't report error"
  11. type changed to: "Bug"