Overview
| Artifact ID: | 3c3d5c3cc84a0eb6ab2db42f76f4f694ab21a5b3 |
|---|---|
| Ticket: | 7b0e690b70e84f3cb1d7278c3f160415514f5fa9
chan push returns channel ID |
| User & Date: | anonymous on 2014-10-05 00:09:19 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
The man page for [chan push] says that it returns a handle to the newly created transform, presumably the same handle that will be passed to the cmdprefix when it is called. Instead, it seems to be returning the channel ID. First, I define a simple channel transform, "mychan", as a snit::type. Its initialize method looks like this: typemethod initialize {handle mode} { puts stderr "initialize $handle $mode" } Then: % set f [open testfile.txt w] file6 % set h [chan push $f mytrans] initialize rt2 write file6 % In short, the initialize method is called, and the handle is rt2; but then [chan push] returns the channel ID, "file6". - foundin changed to: "8.6.1"
- is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- private_contact changed to: "cac53f059e06402625535d363c84a4e2ab543e92"
- resolution changed to: "None"
- severity changed to: "Critical"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "26. Channel Transforms"
- title changed to: "chan push returns channel ID"
- type changed to: "Bug"