1
Fork 0

Change syntax extension syntax: #m[...] -> m!{...}.

This commit is contained in:
Paul Stansifer 2012-07-30 16:01:07 -07:00
parent 650fb06d68
commit a9cc5066ee
365 changed files with 2760 additions and 2759 deletions

View file

@ -6,7 +6,7 @@ class cat {
priv {
let mut meows : uint;
fn meow() {
#error("Meow");
error!{"Meow"};
self.meows += 1u;
if self.meows % 5u == 0u {
self.how_hungry += 1;
@ -24,12 +24,12 @@ class cat {
fn eat() -> bool {
if self.how_hungry > 0 {
#error("OM NOM NOM");
error!{"OM NOM NOM"};
self.how_hungry -= 2;
ret true;
}
else {
#error("Not hungry!");
error!{"Not hungry!"};
ret false;
}
}
@ -41,7 +41,7 @@ impl of to_str for cat {
fn print_out<T: to_str>(thing: T, expected: ~str) {
let actual = thing.to_str();
#debug("%s", actual);
debug!{"%s", actual};
assert(actual == expected);
}