2012-03-28 00:08:48 -05:00
|
|
|
class cat {
|
|
|
|
|
2012-07-14 00:57:48 -05:00
|
|
|
let name : ~str;
|
2012-03-28 00:08:48 -05:00
|
|
|
|
2012-07-14 00:57:48 -05:00
|
|
|
new(in_name: ~str)
|
2012-03-29 14:21:13 -05:00
|
|
|
{ self.name = in_name; }
|
2012-03-28 00:08:48 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2012-07-14 00:57:48 -05:00
|
|
|
let nyan = cat(~"nyan");
|
2012-03-28 00:08:48 -05:00
|
|
|
}
|