2012-07-16 21:16:19 -05:00
|
|
|
// pp-exact - Make sure we actually print the attributes
|
|
|
|
|
|
|
|
class cat {
|
|
|
|
#[cat_maker]
|
|
|
|
new(name: ~str) { self.name = name; }
|
|
|
|
#[cat_dropper]
|
2012-07-30 18:01:07 -05:00
|
|
|
drop { error!{"%s landed on hir feet", self.name}; }
|
2012-07-16 21:16:19 -05:00
|
|
|
let name: ~str;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { let _kitty = cat(~"Spotty"); }
|