This package is currently hosted on SourceForge [L1 ]. Its homepage is http://memchan.sourceforge.net/ This package is part of the ActiveTcl Batteries Included distribution.
It provides several new channel types whose instances store the transfered information in memory and do not go to the OS at all.
Channel types
What: memchan Where: http://memchan.sourceforge.net/ > http://www.purl.org/NET/akupries/soft/memchan/ Description: A new channel type for Tcl 8's channel system. Memory channels conform to the same interface as files and sockets, but the data is stored in memory rather than in files. They are good for long dynamic strings and passing large quantities of data. Supports Window and Unix. See the web page for pointers to the source and binary downloads. Currently at version 2.2.1 Updated: 03-Dec-2004 Contact: mailto:[email protected] (Andreas Kupries) mailto:[email protected] (Pat Thoyts)
LES on Sep 12 2005: Would it be possible for memchan or a similar hypothetical extension to store data in memory in such a way that it survives the exit command and thus remains available to other Tcl programs or subsequent calls of the same program?
Extensions for Tcl and Tk links to many more interesting extensions to Tcl.