1tcl::chan::null(n) Reflected/virtual channel support tcl::chan::null(n)
2
3
4
5______________________________________________________________________________
6
8 tcl::chan::null - Null channel
9
11 package require Tcl 8.5
12
13 package require TclOO
14
15 package require tcl::chan::events ?1?
16
17 package require tcl::chan::null ?1?
18
19 ::tcl::chan::null
20
21______________________________________________________________________________
22
24 The tcl::chan::null package provides a command creating null channels,
25 i.e. write-only channels which immediately forget whatever is written
26 to them. This is equivalent to the null channels provided by the pack‐
27 age Memchan, except that this is written in pure Tcl, not C. On the
28 other hand, Memchan is usable with Tcl 8.4 and before, whereas this
29 package requires Tcl 8.5 or higher, and TclOO.
30
31 Packages related to this are tcl::chan::zero and tcl::chan::nullzero.
32
33 The internal TclOO class implementing the channel handler is a sub-
34 class of the tcl::chan::events framework.
35
37 ::tcl::chan::null
38 This command creates a new null channel and returns its handle.
39
41 This document, and the package it describes, will undoubtedly contain
42 bugs and other problems. Please report such in the category virtchan‐
43 nel of the Tcllib Trackers [http://core.tcl.tk/tcllib/reportlist].
44 Please also report any ideas for enhancements you may have for either
45 package and/or documentation.
46
47 When proposing code changes, please provide unified diffs, i.e the out‐
48 put of diff -u.
49
50 Note further that attachments are strongly preferred over inlined
51 patches. Attachments can be made by going to the Edit form of the
52 ticket immediately after its creation, and then using the left-most
53 button in the secondary navigation bar.
54
56 /dev/null, null, reflected channel, tip 219, virtual channel
57
59 Channels
60
62 Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
63
64
65
66
67tcllib 1 tcl::chan::null(n)