2012-05-22 16:10:32 -05:00
|
|
|
import task::*;
|
|
|
|
import comm::*;
|
|
|
|
|
2012-06-01 16:48:02 -05:00
|
|
|
class test {
|
|
|
|
let f: int;
|
|
|
|
new(f: int) { self.f = f; }
|
|
|
|
drop {}
|
2012-05-22 16:10:32 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let p = port();
|
|
|
|
let c = chan(p);
|
|
|
|
|
2012-07-04 14:04:28 -05:00
|
|
|
do spawn() {
|
2012-05-22 16:10:32 -05:00
|
|
|
let p = port();
|
|
|
|
c.send(chan(p));
|
|
|
|
|
|
|
|
let _r = p.recv();
|
|
|
|
}
|
|
|
|
|
|
|
|
p.recv().send(test(42));
|
|
|
|
}
|