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:
- tclVar.diff [download] added by coldstore on 2003-03-28 20:51:12. [details]