tcl::chan::empty

tcl::chan::empty 1 Reflected/virtual channel support

empty channel

SYNOPSIS

package require Tcl 8.5

package require TclOO

package require tcl::chan::empty ?1?

  • ::tcl::chan::empty

DESCRIPTION

The tcl::chan::empty package provides a command creating an empty channel, which is a readonly, random-access channel behaving exactly as a file of 0 bytes.

API

::tcl::chan::empty
This command creates a new readonly empty channel and returns its handle. Despite its simplicity, this channel provides read-only random-access, i.e. it fully supports the tell and seek commands).

COPYRIGHT

 Copyright (c) 2019 Aldo Buratti <[email protected]>
 based on tcl::chan::string by Andreas Kupries