Overview
| Artifact ID: | a6b3516e48c5891599d729957ebf96872a4465cc |
|---|---|
| Ticket: | 3017879fffffffffffffffffffffffffffffffff
proc emptyness is cached too aggressively |
| User & Date: | a_kovalenko on 2010-06-18 16:49:42 |
Changes
- icomment:
Miguel, You are right: when we speak of renames, e.g. of renaming to {} and putting some other command instead of an original one, imported "command pointers" behave like we expect: they follow original commands and vanish when originals are deleted. But the problem I described is linked to a fact that proc redefinition really ISN'T interpreted as command deletion + new command creation. It's something like a "half-deletion": command delete traces are called, but existing imports are retargeted to new proc instead of vanishing. More: overriding a non-proc command with a proc having the same name (old command may be e.g. a renamed built-in, an extension-provided command, an alias, an ensemble, an "import link" to another command, etc..) _ALSO_ retargets imports to a proc. So overriding something with [proc] is a special case, a kind of `two renames done in a transaction while blocking importers from noticing it', and I fully understand why it should be allowed: a lot of programmers want to modify behavior of existing commands without breaking past imports. For all such redefinitions, _except_ overriding an empty proc (proc name args {}), old import entries _are_ relinked to a new proc. Failing to imitate the same behavior with empty procs is therefore a bug. - login: "a_kovalenko"
- mimetype: "text/plain"
- username: "a_kovalenko"