Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 09729ce910920c84eb680f35e76d00e37ff741a6
Ticket: 707104ffffffffffffffffffffffffffffffffff
[interp alias] overwrites [rename]d alias
User & Date: vincentdarley on 2003-03-20 20:05:39
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I see some very peculiar behaviour with aliased 
    commands, which is at the very least not 
    documented, and possible a bug:
    
    % proc foo {} { puts "orig" }
    % interp alias {} bar {} foo
    % bar
    orig
    % rename bar bar2
    % bar2
    orig
    % bar
    orig
    # (So now both 'bar' and 'bar2' are aliases, 
    i.e. 'rename' actually copies the alias rather than 
    renaming it)
    
    % proc foo2 {} { puts "new" }
    % interp alias {} bar {} foo2
    % bar
    new
    % bar2
    invalid command name "bar2"
    
    # (So the act of creating a new alias "bar" deletes 
    both the old aliases "bar" and "bar2")
    
    
    
    
  4. foundin changed to: "obsolete: 8.4.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "vincentdarley"
  9. subsystem changed to: "20. [interp]"
  10. title changed to: "disappearing 'interp alias' commands"
  11. type changed to: "Bug"