Version 10 of tie

Updated 2005-09-13 03:36:59 by AK

http://tcllib.sourceforge.net/doc/tie.html


Array persistence. This package provides a framework for the creation of persistent Tcl array variables. It is also generic enough to allow the distribution of the contents of Tcl arrays over multiple threads and processes, i.e. communication. Persistence and communication are accomplished by tying a Tcl array variable to a data source. Examples of data sources are other Tcl arrays and files.

CMcC 20050303 - I've written a Metakit backend for tie

RLH 20050901 - When would this be included in tcllib? With the next 8.4 release?

AK This can go into the example area.


Am I using tie correctly? The following script:

    package require tie
    set a(y) 1
    set a(z) 3
    tie::tie a file a.save
    set a(aa) 2
    set a(ab) 3
    set a(ac) 4

Gives me an error:

    can't set "a(ab)": can't unset "cache": no such variable
        while executing
    "set a(ab) 3"

AK: I can confirm this error. This looks very much like a bug. Please submit this (and any future) bugs to the Tcllib SourceForge project. See http://tcllib.sourceforge.net/ , then follow the links to the "Bug Database" and "Submit New".


Category Interprocess Communication | Category Package