Removed/commented out some destructor stuff. It'll come back for defer

This commit is contained in:
Nathan Braswell
2015-05-10 02:48:05 -04:00
parent 44d310c092
commit d70fa4ebbb
3 changed files with 5 additions and 31 deletions

View File

@@ -1 +0,0 @@
Hello Destructors!

View File

@@ -1,28 +0,0 @@
import io:*;
typedef DestructorPrint {
var myStr: char*;
fun construct(str: char*): DestructorPrint* {
myStr = str;
return this;
}
fun destruct(): void {
println(myStr);
}
};
typedef NoDistruction {
var a: int;
fun dummyFunc(): void {}
};
fun indirPrint(): void {
var testObj.construct("Hello Destructors!"): DestructorPrint;
var dummy: NoDistruction;
}
fun main(): int {
indirPrint();
return 0;
}