This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: fluid-let


Marius Vollmer <mvo@zagadka.ping.de> writes:

 > hjstein@bfr.co.il (Harvey J. Stein) writes:
 > 
 > > For the hell of it, here's my fluid-let.  First of all, from the
 > > wrappers package I posted, I have:
 > > 
 > > (define-macro (with-wrappers wrapper starter ender symlist form)
 > 
 > Hmm, does `with-wrappers' have the swap-property that we decided to be
 > the right thing?  In any case, there is much code being thrown around
 > in your macro, too much for my tastes.  This makes it hard to reason
 > about the exact environment in which the closures sit, etc.

The use of dynamic-wind would be pointless if this wasn't done.
with-wrappers saves the variables (using gensyms) in a let, then uses
dynamic-wind to wrap the form with the setting & resetting of the
wrapped symbols.

-- 
Harvey J. Stein
BFM Financial Research
hjstein@bfr.co.il