michael@0: a = function() { michael@0: b = newGlobal() michael@0: }; michael@0: c = [0, 0] michael@0: c.sort(a) michael@0: function d() { michael@0: yield arguments[4] michael@0: } michael@0: b.iterate = d michael@0: f = Proxy.create(b) michael@0: e = Iterator(f, true) michael@0: for (p in f) { michael@0: e.next() michael@0: }