Tcl Source Code

View Ticket
Login
Ticket UUID: 3601284
Title: [testinterpresolver] breaks epoch rules
Type: Bug Created on: 2013-01-17 18:02:31
Submitter: dgp Assigned to: msofer
Subsystem: 21. [namespace] Severity:
Priority: 5 Medium Last modified: 2013-01-17 18:02:31
Status: Open Closed by:
Resolution: None Closed on:
Version: None
Description:
The testing command [testinterpresolver] adds an interp
cmd resolver that behaves inconsistently with the epoch
checking built in to the "cmdName" Tcl_ObjType.

The routine InterpCmdResolver() does it command name
resolution based on context details other than the set of things
a "cmdName" Tcl_Obj recognizes as releveant to the resolution
task.  This means that InterpCmdResolver can produce different
results in different contexts, but a "cmdName" holding a result
from an earlier context cannot recognize the need to repeat
the resolution in the new context.

This makes command resolution with this testing command in
place sensitive to shimmer and share patterns of usage, exposing
internals that ought to be hidden.