Now computes closed_variables for each lambda, placeholder closure_struct type stuff.

This commit is contained in:
Nathan Braswell
2016-02-22 16:18:55 -05:00
parent 34f11b0874
commit 08125551af
5 changed files with 91 additions and 20 deletions

View File

@@ -63,10 +63,10 @@ obj set<T> (Object, Serializable) {
fun contains(item: T): bool {
return data.find(item) != -1
}
fun operator+=(item: T) {
fun operator+=(item: ref T) {
add(item)
}
fun operator+=(items: set<T>) {
fun operator+=(items: ref set<T>) {
add(items)
}
fun add(item: ref T) {