olleicua / hcl

Hot Cocoa Lisp
GNU General Public License v3.0
34 stars 4 forks source link

fix scoping of builtin loops #16

Closed olleicua closed 10 years ago

olleicua commented 10 years ago

e.g

(for (a b)
  (stuff))

should compile to

(function() {
  for (_i0_ = 0; _i0_ < b.length; _i0_++) {
    (function(a) { stuff(); }).call(this, b[_i0_]);
  }
}).call(this)