// Generated from pipe compiler mod stream { fn init() -> (client::stream, server::stream) { pipes::entangle() } enum stream { send(T, server::stream), } mod client { fn send(+pipe: stream, +x_0: T) -> stream { { let (c, s) = pipes::entangle(); let message = stream::send(x_0, s); pipes::send(pipe, message); c } } type stream = pipes::send_packet>; } mod server { type stream = pipes::recv_packet>; } } fn main() { let (bc, _bp) = stream::init(); stream::client::send(bc, ~"abc"); }