Skip to content

Instantly share code, notes, and snippets.

@catamorphism
Created June 12, 2012 17:54
Show Gist options
  • Select an option

  • Save catamorphism/2919019 to your computer and use it in GitHub Desktop.

Select an option

Save catamorphism/2919019 to your computer and use it in GitHub Desktop.
class kitten {
let cat: option<cat>;
let meows: uint;
new(meows: uint, cat: option<cat>) {
self.meows = meows; self.cat = cat;
}
}
type cat = @kitten;
fn main() {
let _k = kitten(1u, none);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment