Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4224d54b5296bfa131ed6cb6ef27b2124421357c
Ticket: 546985ffffffffffffffffffffffffffffffffff
[interp alias] endless loop
User & Date: nobody on 2002-04-22 08:03:29
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OS platform and version: Windows 2000
    
    Problem behavior:
    With [interp alias] one can override built-in or 
    otherwise defined commands, also in the current 
    interp. But after deleting an alias, neither is the 
    original name visible again, nor an error raised for 
    unknown command; instead, an endless loop is reported 
    that the coder does not feel guilty of. (Richard 
    Suchenwirth)
    
    Expected behavior:
    I'm not sure which from reading man interp, but I 
    would expect one of
    (1) original command visible again (preferrably); or
    (2) "unknown command set"
    
    Concise code sample:
    % interp alias {} set {} puts stdout
    set
    % interp alias {} set
    puts stdout
    % set 5
    5
    % interp alias {} set {}
    % interp alias {} set
    % set i 5
    too many nested calls to Tcl_EvalObj (infinite loop?)
    
    
  4. foundin changed to: "obsolete: 8.3.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "20. [interp]"
  10. title changed to: "[interp alias] endless loop"
  11. type changed to: "Bug"