2011-06-15 11:19:50 -07:00
|
|
|
|
|
|
|
|
2010-11-04 07:55:33 -07:00
|
|
|
fn main() {
|
2011-07-27 14:19:39 +02:00
|
|
|
let x: int = 10;
|
|
|
|
let y: int = 0;
|
2011-12-22 17:53:53 -08:00
|
|
|
while y < x { log(debug, y); #debug("hello"); y = y + 1; }
|
2011-12-22 14:42:52 -08:00
|
|
|
do {
|
|
|
|
#debug("goodbye");
|
|
|
|
x = x - 1;
|
2011-12-22 17:53:53 -08:00
|
|
|
log(debug, x);
|
2011-12-22 14:42:52 -08:00
|
|
|
} while x > 0
|
2011-08-19 15:16:48 -07:00
|
|
|
}
|