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