|
2005-04-11
| ||
| 22:51 | • Closed ticket [1180451fff]: upvar to array element and trace non-functional?... artifact: 2f650cdee7 user: msofer | |
| 20:25 | • Ticket [1180451fff]: 4 changes artifact: 843047b322 user: dgp | |
| 02:56 | • New ticket [1180451fff]. artifact: cd00e3d8d7 user: msofer | |
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.