Tcl Source Code

View Ticket
Login
Ticket UUID: 528448
Title: Tcl_UpdateLinkedVar doesn't report error
Type: Bug Created on: 2002-03-11 11:28:34
Submitter: nobody Assigned to: hobbs
Subsystem: 09. Linked C Variables Severity:
Priority: 5 Medium Last modified: 2003-11-13 08:58:09
Status: Open Closed by:
Resolution: None Closed on:
Version: obsolete: 8.4.2
Description:
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!