Skip to content
Tcl Source Code View Ticket
Login

View Ticket

upvar to array element and trace non-functional?

Closed / Duplicate1180451fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2005-04-11 02:56:27
This behaviour is present since (at least) Tcl8.3. Is
it a bug? I did not find it documented ...

% set a(1) 2
2
% trace add variable a read {puts READ;#}
% set a(1)
READ
2
% upvar 0 a(1) x
% set x
2
% set y 1
1
% trace add variable y read {puts READ;#}
% set y
READ
1
% upvar 0 y x
% set x
READ
1
% trace add variable a(1) read {puts READ2;#}
% upvar 0 a(1) x
% set x
READ2
2
dgpplain2005-04-11 20:25:59
Logged In: YES 
user_id=80530


See Feature Request 572889
msoferplain2005-04-11 22:51:22
Logged In: YES 
user_id=148712

Doh - duplicate. Thanks Don.

Interesting that I did not find the docs ... whereas I
pointed to them myself in 572889.
Log in (anonymous is fine) to add a comment.