blob: b59657d0aa0fea03655c0ae9e431ab124c071351 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
namespace;
include rt, actor;
struct res { int fd; void drop() { rt.put_s("closed"); } }
actor Echo { int total; int handle(int x) { return x; } }
fn main() {
res* r = rt.new(res); r.fd = 3;
Echo* e = rt.new(Echo);
e.spawn();
e.close();
return r.fd;
}
|