Fixed the close over methods and member vars bug, but there's something remaining causing the safe_recursive_delete not to work. Gotta save progress and do other stuff

This commit is contained in:
Nathan Braswell
2015-06-27 18:06:02 -04:00
parent 8feb9819b8
commit c50c977a9e
20 changed files with 370 additions and 40 deletions

View File

@@ -107,16 +107,26 @@ fun main(): int {
println("find test")
var multipleFindTest = vector(1,2,3)
println(multipleFindTest.find_index(1))
println(multipleFindTest.find_index(2))
println(multipleFindTest.find_index(3))
println(multipleFindTest.find(1))
println(multipleFindTest.find(2))
println(multipleFindTest.find(3))
println("set and []= test")
println("set, []=, and delete test")
var setTest = vector(4,5,6)
setTest.add(7)
setTest.set(1,8)
setTest[2] = 9
setTest.do(fun(it: int) println(it);)
println("delete")
setTest.remove(2)
setTest.do(fun(it: int) println(it);)
println("delete v2")
var firstRem.construct(100): AbleToBeDestroyed;
var secondRem.construct(200): AbleToBeDestroyed;
var thirdRem.construct(300): AbleToBeDestroyed;
var remTest = vector(firstRem, secondRem, thirdRem);
remTest.remove(1)
println("done")