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.