by nikomatsakis · 14y ago · 0 comments
fn foo(f: fn()) {
log(info, "calling f");
f();
log(info, "called f");
}
fn bar() {
log(info, "calling foo");
foo({||
ret;
});
log(info, "called foo");
}
I'm not clear on whether the ret would return from foo or from bar - or whether it would be a compile error.BTW thanks for taking the time to reply - I appreciate it!
`ret` in block function