Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-03-28
00:39 • Ticket [709340ffff] pass more data in array variable trace status still Ope... artifact: acde177d0f user: coldstore
00:36 • Ticket [709340ffff]: 5 changes artifact: 71a2b707bf user: coldstore
2005-03-25
22:59 • Ticket [709340ffff]: 1 change artifact: 19663dbfcf user: dgp
2003-06-26
23:07 • Ticket [709340ffff]: 1 change artifact: a0f00f69ba user: dgp
17:34 • Ticket [709340ffff]: 1 change artifact: 2d94155430 user: dkf
2003-03-28
20:51 • Ticket [709340ffff]: 4 changes artifact: 5874a6e4c2 user: coldstore
20:51 • Add attachment tclVar.diff to ticket [709340ffff] artifact: 0439a34c22 user: coldstore
2003-03-25
10:33 • New ticket [709340ffff] pass more data in array variable trace . artifact: 297d4b1081 user: coldstore

pass more data in array variable trace

Open709340ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 22 years ago
Descriptionplain2003-03-25 10:33:49
Variable traces triggered on arrays are almost
completely useless - not enough information is passed
to the trace.

The attached patch sends the whole array command as the
second trace argument (usually the array element in
non-array sets, always NULL on array traces.)

Although this changes the semantics of trace, it allows
array traces to be useful for something.  One
application is providing array semantics over
directories - [array get] can be used as the equivalent
of [glob *]

Without this change, I can't imagine a use for array
variable traces.


Colin.
coldstoreplain2003-03-28 20:51:13
File Added - 46150: tclVar.diff
dkf Ticket [709340ffff]: 1 change [History diff]2003-06-26 17:34:20
dgp Ticket [709340ffff]: 1 change [History diff]2003-06-26 23:07:55
dgp Ticket [709340ffff]: 1 change [History diff]2005-03-25 22:59:37
coldstoreplain2005-03-28 00:36:38
Logged In: YES 
user_id=19214

I said ''Without this change, I can't imagine a use for
array variable traces.''.  That was too strong.

I should have said "Without this change or something like
it, I can't imagine a use for array variable traces."
coldstore Ticket [709340ffff]: 1 change [History diff]2005-03-28 00:39:11
Log in (anonymous is fine) to add a comment.

Attachments: