12 lines
190 B
Rust
12 lines
190 B
Rust
|
class cat {
|
||
|
let done : native fn(uint);
|
||
|
let meows : uint;
|
||
|
new(done: native fn(uint)) {
|
||
|
self.meows = 0u;
|
||
|
self.done = done;
|
||
|
}
|
||
|
drop { self.done(self.meows); }
|
||
|
}
|
||
|
|
||
|
fn main() {}
|