View for_bool.rs
fn limited_while(nmax: uint, condition: &fn() -> bool, body: &fn() -> bool) {
for nmax.times {
if (!(condition() && body())) {
break
}
}
}
macro_rules! limited_while(
($condition: expr, nmax: $nmax: expr) => (