Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 93d4c65a20d7d83756b342322a50ce26f7ba24bc
Ticket: 707104ffffffffffffffffffffffffffffffffff
[interp alias] overwrites [rename]d alias
User & Date: vincentdarley on 2003-03-21 15:48:24
Changes

  1. icomment:
    Logged In: YES 
    user_id=32170
    
    The 'rename' man page needs updating then to reflect this limitation.  It's 
    a shame that aliases don't work in this way, since they are otherwise a 
    very powerful part of Tcl.  However, they completely break the 
    semantics of a Tcl command, which is bad!
    
    Is there any reason 'interp aliases' can't return the *current* name of the 
    alias, which users can quite happily iterate over. I wouldn't even see this 
    as a back-compatibility issue, but as a bug fix.
    
    After all:
    
    proc foo {} {}
    rename foo bar
    info procs foo
    # should obviously not return 'foo'
    
    So, similarly
    
    interp alias {} foo {} implementation
    rename foo bar
    interp aliases
    # should not return foo either
    
    
    
    
  2. login: "vincentdarley"
  3. mimetype: "text/plain"
  4. username: "vincentdarley"