Artifacts Associated With Ticket 546985ffffffffff
Ticket change [4224d54b52] (rid 116312) by nobody on 2002-04-22 08:03:29:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- 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?) - foundin initialized to: "obsolete: 8.3.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "20. [interp]"
- title initialized to: "[interp alias] endless loop"
- type initialized to: "Bug"
Ticket change [1065887b8f] (rid 94967) by dkf on 2002-04-22 16:25:35:
- 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."
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [458184e219] (rid 99364) by dgp on 2002-04-22 20:54:56:
- assignee changed to: "dgp"
- closedate changed to: "2002-04-22T13:54:56"
- closer changed to: "dgp"
- 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.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- subsystem changed to: "38. Init - Library - Autoload"
- username: "dgp"