[gambit-list] dynamic scope

lowly coder lowlycoder at huoyanjinjing.com
Sat Jan 31 19:49:52 EST 2009


is there anyway i can obtain dynamic scoping in gambit? lexically scoping is
really cool, and I want it as the default behavior; i just want the ability
to go:

(define (foo x) (* x 2))

(define (g x) (foo x))

(pp (list (g 1) (dynamic-let ( (foo (lambda (x) (* x 3)))) (g 1))))

to get me:

(2 3)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20090131/eb9ebac1/attachment.htm>


More information about the Gambit-list mailing list