Skip to content

Instantly share code, notes, and snippets.

@brson
Created March 30, 2011 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brson/893872 to your computer and use it in GitHub Desktop.
Save brson/893872 to your computer and use it in GitHub Desktop.
fn find_outer_scope_cx(@block_ctxt cx) -> @block_ctxt {
auto scope_cx = find_scope_cx(cx);
alt (cx.parent) {
case (parent_some(?b)) {
be find_scope_cx(b);
}
case (parent_none) {
fail;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment