doc bugfix

parent 09146af0
......@@ -277,9 +277,11 @@ N.B. the setup stack is executed before the setup que.
@section guarded state variables
@findex with-guarded-states
@findex with-guarded-globals
These variables works almost like a global variable it's ok to @code{set!} it the value is still recreatable via a restore-state operation on the other hand under the workings of @code{gp-unwind} and @code{restore-unwind} the variables behaves as a global variable. These objects are very handy in interleaving commands in the guile-log section.
@code{(with-guarded-states guard ((s v) ...) code ...)}, think of @code{s} as a local variable and @code{v} as it's initial binding. @code{guard} is then used to set these variable like @{(guard v-new ...)} e.g. it should behave as in
@code{(with-guarded-states guard ((s v) ...) code ...)}, think of @code{s} as a local variable and @code{v} as it's initial binding. @code{guard} is then used to set these variable like @code{(guard v-new ...)} e.g. it should behave as in
@verbatim
(begin
......@@ -287,7 +289,7 @@ These variables works almost like a global variable it's ok to @code{set!} it th
...)
@end verbatim
And if one stick to wind versions of unwinding and restoring this is indeed the semantic. On the other hand if we would like to escape and store the state for later use it is possible to do that with the standard framework like <stall> <state-ref> and one can even get a call/cc and prompts working.
And if one stick to wind versions of unwinding and restoring this is indeed the semantic. On the other hand if we would like to escape and store the state for later use it is possible to do that with the standard framework like @code{<stall>}, @code{<state-ref>} and one can even get call/cc and prompts working.
@code{(with-guarded-globals g (s ...) code ...)}, this as above but now @code{s...} is already a variables that has been defined.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment