Optimization of string and vector with references and less functional code, bugfix of closing over references

This commit is contained in:
Nathan Braswell
2015-08-04 14:57:56 -04:00
parent d59cb5e252
commit e1dbe08c0a
8 changed files with 67 additions and 42 deletions

View File

@@ -0,0 +1,17 @@
import io:*
fun func(it: ref int) {
it++
fun() {
it++
println(it)
}()
}
fun main(): int {
var it = 7
func(it)
println(it)
return 0
}