rustc: Mostly implement region-bounded stack closures

This commit is contained in:
Patrick Walton
2012-08-10 18:15:08 -07:00
parent 395d1ac185
commit 5bd4110170
30 changed files with 364 additions and 149 deletions

View File

@@ -109,7 +109,7 @@ extern mod rusti {
}
/// A function used to initialize the elements of a vector
type init_op<T> = fn(uint) -> T;
type init_op/&<T> = fn(uint) -> T;
/// Returns true if a vector contains no elements
pure fn is_empty<T>(v: &[const T]) -> bool {