On 1/21/08, Jon Zeppieri <[EMAIL PROTECTED]> wrote:
> On 1/21/08, Igor Bukanov <[EMAIL PROTECTED]> wrote:
> >
> > let f2;
> >
> > function f(a)
> > {
> > f2 = function() { return a; }
> > goto return g();
> > }
> >
> > function g() {f2 = null; ... }
To clarify, space is consumed by the evaluation of:
f2 = function() { return a; }
...which constructs (and binds) a closure.
goto return g();
...on the other hand, does not consume space. a is still live, but
it's live as part of f2's closure, not as part of f's activation
frame.
_______________________________________________
Es4-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es4-discuss