Version 9 of tie

Updated 2005-09-12 22:08:57

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"

Category Interprocess Communication | Category Package