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