Skip to content
Tcl Source Code History Of Ticket 546985ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 546985ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 546985ffffffffffffffffffffffffffffffffff

  1. Ticket change [4224d54b52] (rid 116312) by nobody on 2002-04-22 08:03:29:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.3.4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "20. [interp]"
    10. title initialized to: "[interp alias] endless loop"
    11. type initialized to: "Bug"
  2. Ticket change [1065887b8f] (rid 94967) by dkf on 2002-04-22 16:25:35:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      This destroys the [set] command, and that blows up [unknown]
      unsurprisingly.  Aliases are commands...
      
      IMHO this comes under the heading of "Doctor, it hurts when
      I shove a fork in my eye!" "Stop shoving forks in your eye."
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [458184e219] (rid 99364) by dgp on 2002-04-22 20:54:56:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2002-04-22T13:54:56"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      
      This is a duplicate of Bug 217997.
      
      The default [unknown] expect some built-in Tcl
      commands to exist and have their original definitions.
      When that is not true, very strange things can happen.
      
      To some extent, this problem could be reduced by
      putting Tcl's built-in commands into the ::tcl
      namespace, but you can't make it go away completely,
      and still have Tcl be Tcl.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Duplicate"
    8. status changed to: "Closed"
    9. subsystem changed to: "38. Init - Library - Autoload"
    10. username: "dgp"