[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: redo-safe-variables and redo-safe-parameters
From: |
Stefan Israelsson Tampe |
Subject: |
Re: redo-safe-variables and redo-safe-parameters |
Date: |
Tue, 26 Mar 2013 23:01:43 +0100 |
User-agent: |
KMail/4.9.5 (Linux/3.5.0-26-generic; KDE/4.9.5; x86_64; ; ) |
On Tuesday, March 26, 2013 05:38:03 PM Noah Lavine wrote:
> Okay. Let me see if I understand this correctly:
>
> Let's say, hypothetically, that there were variables that worked
> exactly like fluids except that you could reference them by simply
> writing their names, instead of using (fluid-ref ...). Would those be
> what you want?
>
> I was confusing our fluids and the (fluid-let ...) construct from MIT
> Scheme [0]. Are you looking for variables that behave the way
> fluid-let variables behave? (There's also a nice example on that page
> of how fluid-let works with continuations.)
>
> Best,
> Noah
for redo safe varibles no,
the logic for them is to,
1. Not bind a new value the value you see there is to be able to
dynamically choose to use plain old set! semantic or set~ semantic.
2. When the flow exits the dynamix extent through a non return
statement the current value is stored and when you jump back
it set's the redo-safe varible with to the stored value in case it has
been changed.
for redo safe parameters, they are exactly the same as parameters
except that if the dynamic extent is exited through a return statement
it will not do a full swap, it will just set back the parameter value
to the old state, not store the current state.
/Stefan
- redo-safe-variables and redo-safe-parameters, Stefan Israelsson Tampe, 2013/03/26
- Re: redo-safe-variables and redo-safe-parameters, Noah Lavine, 2013/03/26
- Re: redo-safe-variables and redo-safe-parameters, Stefan Israelsson Tampe, 2013/03/26
- Re: redo-safe-variables and redo-safe-parameters, Noah Lavine, 2013/03/26
- Message not available
- Re: redo-safe-variables and redo-safe-parameters, Noah Lavine, 2013/03/26
- Re: redo-safe-variables and redo-safe-parameters,
Stefan Israelsson Tampe <=
- Re: redo-safe-variables and redo-safe-parameters, Noah Lavine, 2013/03/26
- Re: redo-safe-variables and redo-safe-parameters, Stefan Israelsson Tampe, 2013/03/27
- Re: redo-safe-variables and redo-safe-parameters, Noah Lavine, 2013/03/27
- Re: redo-safe-variables and redo-safe-parameters, Stefan Israelsson Tampe, 2013/03/27
- Re: redo-safe-variables and redo-safe-parameters, Noah Lavine, 2013/03/27
- Re: redo-safe-variables and redo-safe-parameters, Stefan Israelsson Tampe, 2013/03/27
- Re: redo-safe-variables and redo-safe-parameters, Noah Lavine, 2013/03/27
- Re: redo-safe-variables and redo-safe-parameters, Stefan Israelsson Tampe, 2013/03/27
- Re: redo-safe-variables and redo-safe-parameters, Noah Lavine, 2013/03/27
- Re: redo-safe-variables and redo-safe-parameters, Noah Lavine, 2013/03/27