Overview
| Artifact ID: | 053c66d7bc43975f98e20cd24c7e860e0034ecad |
|---|---|
| Ticket: | a4494e28edfaa3a5d064dd1d91cfbd6163b6fb20
alias trace did not find command in real command list of import references |
| User & Date: | miguel on 2014-02-06 15:15:33 |
Changes
- assignee changed to: "dgp"
- icomment:
This is pretty involved - the required mechanics for deleting an imported command ALSO from a delete trace on the target are not in place, and it doesn't look trivial to implement. The trouble is (refs from checkout4aa075565662, today's top of core-8-5-branch): 1. when the target is replaced via Tcl_CreateObjCommand, the importRefPtr is saved and set to NULL (tclBasic.c line 1891) 2. the target is deleted, it's delete traces run causing the imported command to be deleted 3. the imported command looks for a ref to itself in the target's importRefPtr, panics when it doesn't find itself I do not see how to fix this. It is a conseuqence of what I consider to be a misfeature. Redefining a command maintains the exports - so that imported commands are NOT a link to the original implementation (what I would propose is the correct thing), but rather to the current implementation ... ASSUMING it wasn't EXPLICITLY deleted and then recreated, in which case the import ceases to exist. A weird bastard between an interp-alias and (what I believe should be) an import. IOW, redefining a command is different from deleting/recreating it in terms of exports - but delete traces have no way to know about this difference. Maybe the solution should be that delete traces not be run when the command is being recreated?
- login: "miguel"
- mimetype: "text/plain"