2011-08-15 18:54:02 -05:00
|
|
|
use std;
|
2011-12-13 18:25:51 -06:00
|
|
|
import comm::*;
|
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-08-25 13:20:43 -05:00
|
|
|
let po = port();
|
|
|
|
let ch = chan(po);
|
2011-08-15 18:54:02 -05:00
|
|
|
send(ch, 42);
|
2011-08-25 13:20:43 -05:00
|
|
|
let r = recv(po);
|
2011-12-22 19:53:53 -06:00
|
|
|
log(error, r);
|
2011-08-10 11:27:22 -05:00
|
|
|
}
|