[gambit-list] Dynamic bindings?

David St-Hilaire sthilaid at iro.umontreal.ca
Tue Mar 4 16:59:22 EST 2008


Hi gambit list!

Is there a way to get some dynamic scoping in gambit? I tried to use the 
make-parameter and parameterize forms, but I guess I didn't understood them 
because it didn't work out...

I'd like to do something like:

(define (f) (dynamic-let ((x)) x))

(let ((x 10))
   (f))

--> 10

such that x gets defined dynamically? How can I use make-parameter and 
parameterize to do such a thing?

Thank you!

David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20080304/c8e1e311/attachment.sig>


More information about the Gambit-list mailing list