Overview
| Artifact ID: | 51f2d2eb98fd034b5e7b7298a6c5c616d0f7472b5014a8ee1d140f75a6f44a2d |
|---|---|
| Ticket: | 7be97a685975ec271a02518a0d88c6bc121f8df6
Reviewing chan.n changes |
| User & Date: | apnadkarni on 2024-06-20 02:20:36 |
Changes
- closedate changed to: "2460481.59764368"
- closer changed to: "apnadkarni"
- icomment:
I understood this is about script level, but the analogy still holds. Whether in C, or Tcl or any other language, there is a distinction between a *name* and the "object" that it identifies. A process "object" is identified by its PID, a file is identified by its name/path, and a stream returned by open by its file descriptor. My view is the same is true of Tcl channels. The channel itself is a programming construct for I/O built on top of files, sockets, pipes or whatever. What the open or socket commands return is a reference to this construct in the form of an identifier or name. If we were to have a `dup` command, (I think TclX may even have one) that emulated the Unix dup, it would create a new reference/name and *not* a new channel. Hence the distinction. Now an opposite view might be, that the word "channel" is in fact the reference to the I/O construct and not the construct itself. Perhaps that is your position. Plausible but would not really fit when we talk about "pushing a transform on to a channel". In any case, as I said in most cases the distinction is immaterial as semantics are clear from context but if we ever get around to clearly documenting the nouns and verbs as Don suggested, that distinction should be maintained.
- login: "apnadkarni"
- mimetype: "text/x-markdown"