Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 19b420ce982c4c0bed44d3a177b07c1fccfec3d3
Ticket: 2785893fffffffffffffffffffffffffffffffff
bug in command name caching
User & Date: msofer on 2009-05-03 02:36:06
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "9 Immediate"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "msofer"
  10. subsystem changed to: "45. Parsing and Eval"
  11. title changed to: "bug in command name caching "
  12. type changed to: "Bug"