From: SourceForge.net <no...@so...> - 2004-10-30 20:32:14
|
Bugs item #1026493, was opened at 2004-09-11 19:08 Message generated for change (Comment added) made by msofer You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1026493&group_id=10894 Category: 20. [interp] Group: None >Status: Open Resolution: Fixed Priority: 9 Submitted By: miguel sofer (msofer) >Assigned to: Don Porter (dgp) Summary: [interp alias] and [rename]: confusing error messages Initial Comment: % interp alias {} a {} b a % rename a c % rename c b cannot define or rename alias "a": would create a loop This is related to Bug #707104, and the confusion between tokens and command names. ---------------------------------------------------------------------- >Comment By: miguel sofer (msofer) Date: 2004-10-30 17:32 Message: Logged In: YES user_id=148712 Not sure about backporting: the fix of [Bug 707104] in HEAD changes the behaviour of aliases, and requires doc changes too. IMHO, not to be done in the stable branch. OTOH, a partial fix of the error message only is feasible (patch attached, not committed). But it does require changing tests interp-17.4-5. Isn't such a thing a no-no for the stable branch? As this particular bug is relatively harmless ... your call. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2004-10-26 14:44 Message: Logged In: YES user_id=80530 consider a backport for 8.4.8 ---------------------------------------------------------------------- Comment By: miguel sofer (msofer) Date: 2004-09-14 14:47 Message: Logged In: YES user_id=148712 Patch to 707104 committed, this is fixed. ---------------------------------------------------------------------- Comment By: miguel sofer (msofer) Date: 2004-09-11 23:06 Message: Logged In: YES user_id=148712 This bug is fixed by the patch 707104.patch2 attached to bug 707104. ---------------------------------------------------------------------- Comment By: miguel sofer (msofer) Date: 2004-09-11 19:27 Message: Logged In: YES user_id=148712 It is relatively simple to make it so that the error message becomes cannot define or rename alias to "b": would create a loop by replacing 'aliasPtr->name' with 'Tcl_GetCommandName(cmdInterp, cmd)' in two error messages in the function TclPreventAliasLoop(). It seems rather more involved to obtain cannot define or rename alias "c": would create a loop ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1026493&group_id=10894 |