|
From: | Noah Lavine |
Subject: | Re: redo-safe-variables and redo-safe-parameters |
Date: | Wed, 27 Mar 2013 11:29:39 -0400 |
Hi Noha,
On Wed, Mar 27, 2013 at 3:29 PM, Noah Lavine <address@hidden> wrote:
> Hello,
>
>
> On Wed, Mar 27, 2013 at 9:22 AM, Stefan Israelsson Tampe
> <address@hidden> wrote:
> I don't understand the difference. If I use ~, I get redo-safe behavior, andusing set! means that you basically destroys the redo safe property.
> if I use !, I get regular behavior (value shared between dynamic states).
> Can I use ~ and ! on the same variable at different places in the code? If
> yes, doesn't it have to switch behavior?
There is no sound concept where you mix them. If you want to mix them
use ~ and add correct function guards to describe the semantics....
You want to allow a user to let one variable behave as with set! and one as with
set~. It is not broken, the useres sees ~ on one of the varibles and !
on the other.
BTW. srfi's shouuld be careful about specifying dynamic state in order
to achieve thread safe concpets, Scheme48 is threadsafe with their
fluid-let, guile would not be.
[Prev in Thread] | Current Thread | [Next in Thread] |