Overview
| Artifact ID: | 2f04e47c0766502c52c02cae692cc9422cedcf1a |
|---|---|
| Ticket: | 652765ffffffffffffffffffffffffffffffffff
errors disappear in trace callbacks |
| User & Date: | duquette on 2004-08-22 01:14:19 |
Changes
- icomment:
Logged In: YES user_id=372859 Here's an example of where the current code causes a problem: in object code (e.g., Tcllib's struct::stack) the object name is often used as an index into array in which the specific object's data is stored. If the object is renamed, this breaks. An obvious use of a rename trace is to throw an error if the object is renamed. At present, you can't do that and make it stick without installing a modified version of the "rename" command. Look at it another way--if errors in rename and delete callbacks propagated normally, the programmer could achieve the current behavior using "catch". With the code as it is, the programmer has no choice. This is not academic, either; Snit relies on the rename/destroy callbacks.
- login: "duquette"
- mimetype: "text/plain"
- username: "duquette"