imported alias not recognized
Closed / Invalid1017035fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-08-26 17:11:49
% interp create slave
slave
% namespace eval ns namespace export alias
% interp alias {} ns::alias slave target
ns::alias
% interp target {} ns::alias
slave
% namespace import ns::alias
% interp target {} alias
alias "alias" in path "" not found
So the [namespace import]ed
alias act differently from the
[namespace origin]al alias command.
Not sure whether this should be
considered a bug, but it's inconsistent
with how [proc]s get imported, where
one can do "proc" things like [info body]
on the imported command as well
as the original.
dkfplain2004-08-27 16:59:58
Logged In: YES user_id=79902 Is a bug: use TclGetOriginalCommand to traverse [namespace import] chains.
dgpplain2004-09-10 05:51:11
Logged In: YES user_id=80530 Another perspective to claim this is "not a bug" is to claim that [interp target] accepts only a "token" that idenfities the alias, not all (imported) commands the invoked the alias.
dgpplain2004-09-13 23:37:02
Logged In: YES user_id=80530 Detailed work on 707104 concludes this is "not a bug".
Log in (anonymous is fine) to add a comment.