Tcl_UpdateLinkedVar doesn't report error
Open528448ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 23 years ago
Descriptionplain2002-03-11 11:28:34
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!
dgp Ticket [528448ffff]: 1 change
[History diff]2003-11-13 08:58:09
Log in (anonymous is fine) to add a comment.