tcl::c...emchan(3tcl)
β¨ tcl::chan::memchan β the manual page (3tcl) β¨
okay bestie, welcome to the tcl::chan::memchan page π this one lives under Reflected/virtual channel support, and we're about to make in-memory channels make sense. no cap.
π NAME π
tcl::chan::memchan β it's giving In-memory channel energy π
πΈ SYNOPSIS πΈ
package require Tcl 8.5 9
package require TclOO
package require tcl::chan::events ?1.1?
package require tcl::chan::memchan ?1.0.5?
::tcl::chan::memchan
like, yes, that's a lot of package require lines. it's fine. she's thorough π«Ά
π¦ DESCRIPTION π¦
so the tcl::chan::memchan package hands you a command that makes channels which literally live purely in memory β¨ no files, no disk, just vibes.
these channels do random-access, meaning they're seekable. so you can jump around in them like it's nothing.
here's the tea β: this is equivalent to the memchan channels that the Memchan package gives you β except that this one is written in pure Tcl, not C. flip side tho: Memchan works with Tcl 8.4 and before, whereas this package needs Tcl 8.5 or higher, plus TclOO. periodt.
the related packages in this little friend group are tcl::chan::string and tcl::chan::variable π
and the internal TclOO class doing all the channel-handler work is a sub-class of the tcl::chan::events framework. main character inheriting from another main character, we love to see it π
π API π
::tcl::chan::memchanβ this command creates a brand new memchan channel and hands you back its handle. that's it, that's the whole job, and she does it flawlessly β¨
π BUGS, IDEAS, FEEDBACK π
ngl, this document and the package it describes will undoubtedly contain bugs and other problems π that's just how it is. please report them in the category virtchannel of the Tcllib Trackers: http://core.tcl.tk/tcllib/reportlist
also pls report any ideas for enhancements you have for either the package and/or the documentation π«Ά we want them.
when you're proposing code changes, please provide unified diffs, i.e. the output of diff -u. no freestyle.
also, heads up bestie: attachments are strongly preferred over inlined patches. you can attach stuff by going to the Edit form of the ticket immediately after creating it, and then using the left-most button in the secondary navigation bar. iykyk π
β KEYWORDS β
in-memory channelreflected channeltip 219virtual channel
π CATEGORY π
Channels π
π COPYRIGHT π
Copyright (c) 2009-2017 Andreas Kupries <andreas_kupries@users.sourceforge.net>
and that's the whole page, bestie π this came to you straight from tcllib, version 1.0.5, and yes we're citing it properly because credit is non-negotiable around here π slay, go make some in-memory channels, and remember: seekable and unbothered β¨π¦
π¦ where this page comes from
- debian trixie: tcllib 2.0+dfsg-4 Β· Tcl
- ubuntu questing: tcllib 2.0+dfsg-4
- ubuntu resolute: tcllib 2.0+dfsg-5 Β· Tcl
- ubuntu stonking: tcllib 2.0+dfsg-6 Β· Tcl
- Copyright (c) 2009-2017 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms