tcl::chan::nullzero(n)

πŸ“¦
version 2.0 Β· 2 versions
, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

✨ tcl::chan::nullzero ✨

okay bestie, welcome to tcl::chan::nullzero β€” part of the Tcllib reflected/virtual channel support family, and honestly? it's giving void. it's giving the abyss staring back, but politely. πŸ•³οΈπŸ’–


🌸 NAME 🌸

tcl::chan::nullzero β€” the Null/Zero channel combination. it's both. at once. iconic behavior fr fr πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

package require Tcl 8.5 9

package require TclOO

package require tcl::chan::events ?1.1?

package require tcl::chan::nullzero ?1.1?

::tcl::chan::nullzero

no cap, that's the whole vibe. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so the tcl::chan::nullzero package hands you a command that creates channels β€” and these channels are a combination of null and zero devices. like a bestie duo but as one entity. main character energy honestly πŸ‘‘

what do they do? two things, and they ate:

  • whatever you write to them, they immediately forget. instantly. gone. no notes, no memory, it never happened πŸ’€
  • when you read from them, you get an infinite stream of null characters. forever. it will never stop giving 🌈

the packages related to this one are tcl::chan::null and tcl::chan::zero β€” this is basically their collab era 🫢

also important: the internal TclOO class that implements the channel handler is a sub-class of the tcl::chan::events framework. so it's got that framework bloodline, iykyk. 🧚


πŸ’œ API πŸ’œ

  • ::tcl::chan::nullzero β€” this command creates a brand new nullzero channel and returns its handle. that's it, that's the whole job, and it does it flawlessly ⭐

😭 BUGS, IDEAS, FEEDBACK 😭

okay so real talk: this document, and the package it describes, will undoubtedly contain bugs and other problems. not being dramatic, it literally says so. πŸ™ˆ

please report such things in the category virtchannel of the Tcllib Trackers at [http://core.tcl.tk/tcllib/reportlist].

also please report any ideas for enhancements you may have for either the package and/or the documentation. we want them. we're obsessed with them actually πŸ’–

when you're proposing code changes, please provide unified diffs, i.e. the output of diff -u.

and note further: attachments are strongly preferred over inlined patches. you can make an attachment by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar. do it that way, bestie, trust πŸ™


πŸ”₯ KEYWORDS πŸ”₯

/dev/null, /dev/zero, null, reflected channel, tip 219, virtual channel, zero


πŸ‘‘ CATEGORY πŸ‘‘

Channels


Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>


and that's the whole page, babes πŸ’… this was tcllib version 1.1, the tcl::chan::nullzero(n) page β€” thanks for reading the void with me, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from