2012-05-14 16:13:32 -05:00
|
|
|
class 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;
|
2012-07-03 18:11:00 -05:00
|
|
|
new(done: extern fn(uint)) {
|
2012-05-14 16:13:32 -05:00
|
|
|
self.meows = 0u;
|
|
|
|
self.done = done;
|
|
|
|
}
|
|
|
|
drop { self.done(self.meows); }
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|