std: Remove struct ctors

This commit is contained in:
Brian Anderson
2012-09-04 17:22:09 -07:00
parent 268850f67b
commit eb0cf3a715
4 changed files with 64 additions and 10 deletions

View File

@@ -44,7 +44,6 @@ enum CVec<T> {
struct DtorRes {
let dtor: Option<fn@()>;
new(dtor: Option<fn@()>) { self.dtor = dtor; }
drop {
match self.dtor {
option::None => (),
@@ -53,6 +52,12 @@ struct DtorRes {
}
}
fn DtorRes(dtor: Option<fn@()>) -> DtorRes {
DtorRes {
dtor: dtor
}
}
/*
Section: Introduction forms
*/