Tcl Source Code

View Ticket
Login
Ticket UUID: 709340
Title: pass more data in array variable trace
Type: RFE Created on: 2003-03-25 10:33:49
Submitter: coldstore Assigned to: msofer
Subsystem: 46. Traces Severity:
Priority: 3 Low Last modified: 2005-03-28 00:39:11
Status: Open Closed by:
Resolution: None Closed on:
Version: None
Description:
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.
User Comments:
coldstore added on 2003-03-28 20:51:13:

File Added - 46150: tclVar.diff

coldstore added on 2005-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."

Attachments: