Overview
| Artifact ID: | c9990c5d705e0c0c0741ed28fa229ff48363523b |
|---|---|
| Ticket: | 2898722fffffffffffffffffffffffffffffffff
[namespace path] + command resolution inconsistencies |
| User & Date: | ferrieux on 2009-11-18 07:27:21 |
Changes
- icomment:
For the record, a summary of a chat with Miguel: Mig first dichotomizes into two strategies: (a) on first alert, nuke all refs (b) look more closely and nuke only those that deserve it Then he argues that (a) is probably faster+better, since [proc]/[rename] are not done at time-critical runtime; (b) is costlier. However, as an afterthought to this discussion, I wonder about the feasibility of (a) short of nuking _all_ refs in the interp. Indeed, the concerned refs are not isolated by namespace, they can come from many namespaces (all those who have the current one in their path, plus extra ones with fully qualified procnames aiming directly at us). So unless we nuke all refs in the interp, (a) is identical to (b). Another approach would be to keep an interpreter-wide hashtable of refs; keyed on the tail of the procname (baz in ::foo::bar::baz). In that case, TclResetShadowed simplifies enormously. However I'm a bit uneasy about what happens to method creation/destruction in TclOO, where the rate of degeneracy on the key (name tail) is high...
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"