Skip to content
Tcl Source Code View Ticket
Login

View Ticket

chan push does not return the documented value

Open2920003fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 49 days ago
Descriptionplain2009-12-23 12:12:25
According to both the chan and the transchan manual page [chan push] is supposed to return the transformation handle. Instead it returns the channel.

The attached patch makes the code behave as documented. I have also tried to patch the tests. But the threaded tests are skipped on my system, so chances are these will not all be correct.
sbronplain2009-12-23 19:12:26
File Added - 356247: chanpush.patch
sbronplain2010-01-19 04:31:12
After playing with stacked channels a bit more and starting to understand better how they work, I've come to the conclusion that it's probably the documentation that should be corrected, not the code.
serhiy.storchakawiki2026-10-14 15:31:28

Same as [7b0e690b70]. Proposed fix in branch doc-chan-push-result: chan.n and transchan.n are corrected, as you suggested.

serhiy.storchaka Ticket [2920003fff]: 2 changes [History diff]2026-10-14 15:31:50
Log in (anonymous is fine) to add a comment.

Attachments: