Thanks.
Fahd
(define (new-counter-from n)
(lambda ()
(set! n (+ n 1))
n))
If called, this functions gives you a closure which captures n, but
doesn't
give you any access to it.
In essence everything bound anywhere (in any environment) is live, but
only one
environment list is in scope.
Ulrich