Move vector literals 2 and 3, and add 4-9 + 12 into vector_literals

This commit is contained in:
Nathan Braswell
2015-06-28 21:10:06 -04:00
parent 93cb0732cc
commit d0223c41b3
4 changed files with 109 additions and 16 deletions

View File

@@ -1,6 +1,7 @@
import io:*;
import mem:*;
import vector:*;
import vector_literals:*
obj AbleToBeDestroyed (Object) {
var data:int
@@ -65,6 +66,9 @@ fun main(): int {
print(newType.at(i));
println();
vector(1,2,3,4,5,6,7,8,9,10,11,12).for_each(fun(i:int) { print(i); })
println()
var desVec: vector<AbleToBeDestroyed>* = new<vector<AbleToBeDestroyed>>()->construct();
var testDestruct.construct(0): AbleToBeDestroyed;
desVec->addEnd(testDestruct);