|
2004-09-21
| ||
| 03:57 | • Ticket [951220ffff] append does not fire a read trace status still Closed wi... artifact: 226daa8574 user: hobbs | |
| 03:57 | • Closed ticket [951220ffff]. artifact: d7f2071c78 user: hobbs | |
|
2004-05-10
| ||
| 22:07 | • Ticket [951220ffff]: 5 changes artifact: 13b4cd8f24 user: msofer | |
| 20:43 | • Ticket [951220ffff]: 5 changes artifact: 42e5843b47 user: dgp | |
| 20:43 | • Ticket [951220ffff]: 1 change artifact: 2f0520acd2 user: dgp | |
| 19:52 | • Ticket [951220ffff]: 1 change artifact: 8bdf221f1b user: trott13 | |
| 19:49 | • Ticket [951220ffff]: 5 changes artifact: 76db805fc7 user: trott13 | |
| 19:49 | • Add attachment append.bug to ticket [951220ffff] artifact: fcd8b34fc2 user: trott13 | |
| 12:48 | • New ticket [951220ffff] append does not fire a read trace. artifact: c0a82a6cda user: trott13 | |
append does not fire a read trace
Closed / Invalid951220ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 22 years ago
Descriptionplain2004-05-10 12:48:26
The attached file (append.bug) registers a read trace for a variable, doing something (here a puts) as a side effect. I expect the "append" command to be executed as a "read/append/write" sequence, thus firing the read trace. I fact it does _not_ execute the traceProc. I think the "append" command should work (with respect to traces) exactly like the "incr" command (which does it right as a read/modify/write sequence).
trott13plain2004-05-10 19:49:46
File Added - 86659: append.bug
trott13 Ticket [951220ffff]: 1 change
[History diff]2004-05-10 19:52:59
dgp Ticket [951220ffff]: 1 change
[History diff]2004-05-10 20:43:52
dgpplain2004-05-10 20:43:53
Logged In: YES user_id=80530 miguel, is this a known issue in the "append" operation on array vars?
msoferplain2004-05-10 22:07:02
Logged In: YES user_id=148712 Fact is: [append] does not trigger read traces, [lappend] does . The behaviour is enforced by the testsuite (test appendComp-7.x) since forever. I don't know much about this, except that it struck me as weird a while back then. I seem to recall Jeff managed to explain why it was right the way it is, but I forget ... maybe he remembers? Maybe it wasn't Jeff? Let him comment ...
hobbsplain2004-09-21 03:57:51
Logged In: YES user_id=72656 There may be an explanation that I can't recall know, but the best reason is because this has been the documented behavior for a long time, so we leave it that way for compatability reasons.
hobbs Ticket [951220ffff]: 2 changes
[History diff]2004-09-21 03:57:52
Log in (anonymous is fine) to add a comment.
Attachments:
- append.bug [download] added by trott13 on 2004-05-10 19:49:46. [details]