Ticket UUID: | 552972 | |||
Title: | Feature Req: addtl introspection methods | |||
Type: | RFE | Version: | None | |
Submitter: | cleverly | Created on: | 2002-05-06 18:43:48 | |
Subsystem: | struct :: tree | Assigned To: | andreas_kupries | |
Priority: | 5 Medium | Severity: | ||
Status: | Closed | Last Modified: | 2002-05-09 12:48:56 | |
Resolution: | Closed By: | andreas_kupries | ||
Closed on: | 2002-05-09 05:48:56 | |||
Description: |
I've made modifications to the struct::graph module that I've found useful in my own scripts. These modifications add several new submethods. Introspection: keys (returns a list of keys), keyexists (returns 1 or 0 depending on whether a given key exists), and getall (returns a serialized list suitable for using with [array set]); and an append and lappend (to avoid doing a 'get/[l]append/set' manually). Patches for the tree.tcl, tree.test, and tree.n files are attached. | |||
User Comments: |
andreas_kupries added on 2002-05-09 12:48:42:
File Added - 22761: graph.test.patch andreas_kupries added on 2002-05-09 12:48:13: File Added - 22760: graph.tcl.patch andreas_kupries added on 2002-05-09 12:47:19: Logged In: YES user_id=75003 Patch committed, with slight changes to the error messages. Also committed the associated patches for the graph structure. cleverly added on 2002-05-07 01:44:49: File Added - 22609: tree.n.patch cleverly added on 2002-05-07 01:44:24: File Added - 22608: tree.test.patch cleverly added on 2002-05-07 01:43:48: File Added - 22607: tree.tcl.patch |
Attachments:
- graph.test.patch [download] added by andreas_kupries on 2002-05-09 12:48:42. [details]
- graph.tcl.patch [download] added by andreas_kupries on 2002-05-09 12:48:13. [details]
- tree.n.patch [download] added by cleverly on 2002-05-07 01:44:49. [details]
- tree.test.patch [download] added by cleverly on 2002-05-07 01:44:24. [details]
- tree.tcl.patch [download] added by cleverly on 2002-05-07 01:43:48. [details]