Move vector literals 2 and 3, and add 4-9 + 12 into vector_literals
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
9131321
|
||||
15513
|
||||
3.7000007.7000007.70000015.700000
|
||||
123456789101112
|
||||
Constructed: 0
|
||||
Copied: 0 to 1
|
||||
Copied: 1 to 2
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user