Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3c3d5c3cc84a0eb6ab2db42f76f4f694ab21a5b3
Ticket: 7b0e690b70e84f3cb1d7278c3f160415514f5fa9
chan push returns channel ID
User & Date: anonymous on 2014-10-05 00:09:19
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. 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".
    
  5. foundin changed to: "8.6.1"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "cac53f059e06402625535d363c84a4e2ab543e92"
  10. resolution changed to: "None"
  11. severity changed to: "Critical"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "26. Channel Transforms"
  15. title changed to: "chan push returns channel ID"
  16. type changed to: "Bug"