Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Bad ensemble caching issue

Closed / Fixed1026903fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-09-12 22:03:51
% namespace ens cre -command a -map {b {puts bad}}
::a
% namespace ens cre -command c -map {b {puts good}}
::c
% proc x {} {a b; c b}
% x
bad
good
% proc x {} {a b; c b; a b; rename a {}; c b}
% x
bad
bad
bad
bad
dkfplain2004-09-13 05:11:25
Logged In: YES 
user_id=79902

Looks like condition in NsEnsembleImplementationCmd that
decides whether to skip forward to runResultingSubcommand
(around line 4862) is wrong (condition is two ensembles in
same NS, same epoch, with same object being used as subcmd
to each of them), since commenting that bit out makes
problem vanish.

The [rename] just indicates how wrong this all is!
dkfplain2004-09-13 17:50:25
Logged In: YES 
user_id=79902

Fix by storing more info in lookup cache and adding a check
to see if the cache is applied to its creator ensemble.
Log in (anonymous is fine) to add a comment.