|
2009-05-08
| ||
| 09:26 | • Closed ticket [2785893fff]: bug in command name caching plus 7 other change... artifact: b5133a398f user: msofer | |
| 02:23 | * generic/tclObj.c (Tcl_GetCommandFromObj): fix for bug [2785893], insure that a command in a dele... check-in: 45a890d2e3 user: msofer tags: core-8-5-branch | |
| 02:21 | * generic/tclObj.c (Tcl_GetCommandFromObj): fix for bug [2785893], insure that a command in a dele... check-in: 851249078c user: msofer tags: trunk | |
|
2009-05-03
| ||
| 23:25 | • Ticket [2785893fff] bug in command name caching status still Open with 4 ot... artifact: 93e71f6b8b user: msofer | |
| 02:36 | • New ticket [2785893fff]. artifact: 19b420ce98 user: msofer | |
bug in command name caching
Closed / Fixed2785893fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-05-03 02:36:06
This is correct: a deleted namespace cannot be found by name, even if it is still active!
% namespace eval ns {}
% proc ns::adios {} {namespace delete ::ns; eval ::ns::adios}
% ns::adios
invalid command name "::ns::adios"
This is correct: active commands in a deleted namespace have access to the namespace's commands
% proc ns::adios {} {namespace delete ::ns; adios}
% ns::adios
unknown namespace "::ns" in namespace delete command
This is wrong: the command was cached in the literal, and it was not cleared! The behaviour should be the same as in the first example.
% namespace eval ns {}
% proc ns::adios {} {namespace delete ::ns; ::ns::adios}
% ns::adios
unknown namespace "::ns" in namespace delete command
msoferplain2009-05-03 23:25:52
See also #1655294
msoferplain2009-05-08 09:26:48
allow_comments - 1 Fixed in HEAD and core-8-5-branch
Log in (anonymous is fine) to add a comment.