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; }