2011-06-15 11:19:50 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-18 11:38:41 -07:00
|
|
|
/*
|
|
|
|
This is about the simplest program that can successfully send a
|
|
|
|
message.
|
|
|
|
*/
|
|
|
|
fn main() {
|
|
|
|
let port[int] po = port();
|
|
|
|
let chan[int] ch = chan(po);
|
|
|
|
ch <| 42;
|
2011-06-15 11:19:50 -07:00
|
|
|
auto r;
|
|
|
|
po |> r;
|
2011-05-18 11:38:41 -07:00
|
|
|
log_err r;
|
2011-06-15 11:19:50 -07:00
|
|
|
}
|