[Chicken-users] On parameterize and fluid-let

2007-10-14 Thread Tobia Conforto
Hi all, I'm new to Scheme and to Chicken, and I like what I see so far! Question: does (parameterize) have any hidden or special meaning that's not obvious? Are these two forms equivalent, except maybe for the introduction of a few symbols? (parameterize ((param1 value1) ...) body ...) (let

Re: [Chicken-users] On parameterize and fluid-let

2007-10-14 Thread Kon Lovett
On Oct 14, 2007, at 5:39 AM, Tobia Conforto wrote: Hi all, I'm new to Scheme and to Chicken, and I like what I see so far! Question: does (parameterize) have any hidden or special meaning that's not obvious? Are these two forms equivalent, except maybe for the introduction of a few symbol

Re: [Chicken-users] On parameterize and fluid-let

2007-10-14 Thread John Cowan
Tobia Conforto scripsit: > Question: does (parameterize) have any hidden or special meaning that's > not obvious? Are these two forms equivalent, except maybe for the > introduction of a few symbols? > > (parameterize ((param1 value1) ...) > body ...) > > (let ((old-value1 (param1)) ...) ;sa

Re: [Chicken-users] On parameterize and fluid-let

2007-10-14 Thread Kon Lovett
On Oct 14, 2007, at 10:05 AM, John Cowan wrote: Tobia Conforto scripsit: Question: does (parameterize) have any hidden or special meaning that's not obvious? Are these two forms equivalent, except maybe for the introduction of a few symbols? (parameterize ((param1 value1) ...) body ...)

Re: [Chicken-users] On parameterize and fluid-let

2007-10-14 Thread John Cowan
Kon Lovett scripsit: > >Fluid-let really is what you thought parameters were: just a hack to > >shallow-bind local variables. Its behavior in the presence of non- > >local > >transfers of control can't be counted on. > > It will bind globals also, uses '##sys#set!'. Also uses 'dynamic-wind'. I

Re: [Chicken-users] On parameterize and fluid-let

2007-10-15 Thread Tobia Conforto
John Cowan wrote: > Kon Lovett scripsit: > > > Fluid-let really is what you thought parameters were: just a hack > > > to shallow-bind local variables. Its behavior in the presence of > > > non-local transfers of control can't be counted on. > > > > It will bind globals also, uses '##sys#set!'. Al

Re: [Chicken-users] On parameterize and fluid-let

2007-10-15 Thread felix winkelmann
On 10/15/07, Tobia Conforto <[EMAIL PROTECTED]> wrote: > > Let me check if I get it right. If fluid-let uses dynamic-wind, then it > is "continuation-safe": exiting and re-entering its dynamic scope, by > means of calling continuations in and out, will correctly reset and > restore the bindings. >

Re: [Chicken-users] On parameterize and fluid-let

2007-10-15 Thread Tobia Conforto
Mark Fredrickson wrote: > ... we can see the macro expansion of parameterize using dynamic-wind. > Dynamic-wind will call the function g6 before and after control enters > or leaves the thunk, by call/cc, the basis of threads in chicken ^ No, I

Re: [Chicken-users] On parameterize and fluid-let

2007-10-15 Thread Mark Fredrickson
On 10/15/07, Tobia Conforto <[EMAIL PROTECTED]> wrote: > Mark Fredrickson wrote: > > ... we can see the macro expansion of parameterize using dynamic-wind. > > Dynamic-wind will call the function g6 before and after control enters > > or leaves the thunk, by call/cc, the basis of threads in chicken

Re: [Chicken-users] On parameterize and fluid-let

2007-10-15 Thread Kon Lovett
On Oct 15, 2007, at 7:47 AM, Mark Fredrickson wrote: On 10/15/07, Tobia Conforto <[EMAIL PROTECTED]> wrote: Mark Fredrickson wrote: ... we can see the macro expansion of parameterize using dynamic- wind. Dynamic-wind will call the function g6 before and after control enters or leaves the t