Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: aa425272ae15c119ea3acf9a0d1254bb738a50bc
Ticket: 1436096fffffffffffffffffffffffffffffffff
unqualified cmd names in ensemble dicts
User & Date: msofer on 2007-11-01 00:12:03
Changes

  1. assignee changed to: "dgp"
  2. icomment:
    Logged In: YES 
    user_id=148712
    Originator: NO
    
    Agreed, but I do not know how to fix this without breaking other stuff. Specifically, the behaviour caused by TCL_EVAL_INVOKE where a command name is resolved in a special context, but the command is then invoked from the caller's context, subtly breaks [uplevel] expectations (and [unknown]). In particular
      uplevel 1 [info level 0]
    may fail to call the current proc - as the lookup will now proceed in the caller's context and not in the special context required by TCL_EVAL_INVOKE. Consider
      % proc a args {namespace eval ::a $args}
      % a proc tell args {info level 0}
      % a namespace export tell           
      % a namespace ensemble create -command ::foo
      ::foo
      % foo tell
      ::a::tell
    
    If the result were 'tell' the effect above would occur.
    
    This behaviour is already problematic in [interp alias], in a milder form: the lookup is done in a previsible context (global). 
    
    
    
    
  3. login: "msofer"
  4. mimetype: "text/plain"
  5. username: "msofer"