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!
|