doc corrections
Closes PR 11865
Merge to 5.1.1
(cherry picked from commit 18e3f54fa5
)
This commit is contained in:
parent
8f368d8df6
commit
2d375a7d29
|
@ -245,12 +245,12 @@ the continuation in @racket[saved-k] becomes @racket[(lambda (x) (+ 5
|
||||||
(saved-k 10)
|
(saved-k 10)
|
||||||
]
|
]
|
||||||
|
|
||||||
A more traditional continuation operator in Racket is
|
A more traditional continuation operator in Racket (or Scheme) is
|
||||||
@racket[call-with-current-continuation], which is often abbreviated
|
@racket[call-with-current-continuation], which is usually abbreviated
|
||||||
@racket[call/cc]. It is like
|
@racket[call/cc]. It is like
|
||||||
@racket[call-with-composable-continuation], but applying the captured
|
@racket[call-with-composable-continuation], but applying the captured
|
||||||
continuation first @tech{aborts} (to the current @tech{prompt}) before
|
continuation first @tech{aborts} (to the current @tech{prompt}) before
|
||||||
restoring the saved continuation. In addition, Racket systems
|
restoring the saved continuation. In addition, Scheme systems
|
||||||
traditionally support a single prompt at the program start, instead of
|
traditionally support a single prompt at the program start, instead of
|
||||||
allowing new prompts via
|
allowing new prompts via
|
||||||
@racket[call-with-continuation-prompt]. Continuations as in Racket
|
@racket[call-with-continuation-prompt]. Continuations as in Racket
|
||||||
|
|
|
@ -36,8 +36,7 @@ evaluation context protected by the barrier:
|
||||||
]
|
]
|
||||||
|
|
||||||
In addition, extensions of Racket may install barriers in
|
In addition, extensions of Racket may install barriers in
|
||||||
additional contexts. In particular, GRacket installs a continuation
|
additional contexts. Finally,
|
||||||
barrier around most every callback. Finally,
|
|
||||||
@racket[call-with-continuation-barrier] applies a thunk barrier
|
@racket[call-with-continuation-barrier] applies a thunk barrier
|
||||||
between the application and the current continuation.
|
between the application and the current continuation.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user