2012-08-15 20:46:55 -05:00
|
|
|
struct cat {
|
2012-07-03 18:11:00 -05:00
|
|
|
let done : extern fn(uint);
|
2012-05-14 16:13:32 -05:00
|
|
|
let meows : uint;
|
|
|
|
drop { self.done(self.meows); }
|
|
|
|
}
|
|
|
|
|
2012-09-05 17:58:43 -05:00
|
|
|
fn cat(done: extern fn(uint)) -> cat {
|
|
|
|
cat {
|
|
|
|
meows: 0u,
|
|
|
|
done: done
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-05-14 16:13:32 -05:00
|
|
|
fn main() {}
|