[gambit-list] dynamic scope

Marc Feeley feeley at iro.umontreal.ca
Sat Jan 31 21:10:43 EST 2009

On 31-Jan-09, at 9:05 PM, lowly coder wrote:

> Cool, thanks!
> The 'problem' I see with this, is that I have to know before hand  
> that I want this variable to be dynamic. The use case here is:
> I'm looking at an existing code base, it has 'foo', which depends on  
> 'bar'.
> I want to call existing function 'foo' with a new definition of 'bar'.
> Is there no other way than to edit the definition of bar and make it  
> a parameter?

Yes... dynamic-wind.


More information about the Gambit-list mailing list