Tk Library Source Code

View Ticket
Login
Ticket UUID: 552968
Title: Feature Req: new introspection methods
Type: Bug Version: None
Submitter: cleverly Created on: 2002-05-06 18:34:36
Subsystem: struct :: graph Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-05-09 12:06:43
Resolution: Duplicate Closed By: andreas_kupries
    Closed on: 2002-05-09 05:06:43
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).

A patch for the graph.tcl, .test, and .n files is
attached.
User Comments: andreas_kupries added on 2002-05-09 12:06:43:
Logged In: YES 
user_id=75003

See #552972.

cleverly added on 2002-05-07 01:35:35:

File Added - 22605: graph.n.patch

cleverly added on 2002-05-07 01:35:11:

File Added - 22604: graph.test.patch

cleverly added on 2002-05-07 01:34:37:

File Added - 22603: graph.tcl.patch

Attachments: