Overview
| Artifact ID: | 82833d2aa6a02b3a4990bf411433f13a88ea8627 |
|---|---|
| Ticket: | 7b0e690b70e84f3cb1d7278c3f160415514f5fa9
chan push returns channel ID |
| User & Date: | anonymous on 2014-10-14 00:11:15 |
Changes
- icomment:
Let me see if I can explain. I do a [chan push], and I register [mytrans]. Suppose I want [mytrans] to be able to access some data structure related to the particular instance of [chan push]. The logical way, given the way the man page is written, is to capture the transform handle returned by [chan push] and use it as a key into an array. But as it is, I can't do that. Instead I have to define my own key, pass it to [mytrans] as a prefix argument. OK, fine. But then, what's the point of passing the transform handle to the callback? It isn't good for anything except maybe debugging. And then, why bother passing the file handle back from [chan push]? You get back exactly the same name as you passed in, which you already had (even if it names something different now). It seems to me that having [chan push] do what the man page says might be useful, whereas the current behavior adds no value at all. [chan push] might as well return nothing.
- login: "anonymous"
- mimetype: "text/plain"
- username: "will"