chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Tobia Conforto
Subject: Re: [Chicken-users] On parameterize and fluid-let
Date: Mon, 15 Oct 2007 12:21:46 +0200
User-agent: Mutt/1.5.11+cvs20060126

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!'. Also uses 'dynamic-wind'
>
> I meant to say lexical, rather than local, variables.

What do you mean by non-local transfers of control?

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.

It is not thread-safe though, meaning that if more than one thread has
access to the same global or local variable, the modifications
introduced to it by fluid-let will be visible to all other threads.
Right?


Tobia

PS: nice to see you on this list too!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]