Docs for prompt tag & mark key types
original commit: aae8890cd3939bf6dd6d0bddc640a2e03dcd1c3f
This commit is contained in:
parent
c6d22871bc
commit
37cbd6d5a9
|
@ -194,7 +194,6 @@ needed to check the desired bounds at runtime.
|
|||
@defidform[Null]
|
||||
@defidform[EOF]
|
||||
@defidform[Continuation-Mark-Set]
|
||||
@defidform[Prompt-Tag]
|
||||
@defidform[Undefined]
|
||||
@defidform[Module-Path]
|
||||
@defidform[Module-Path-Index]
|
||||
|
@ -384,6 +383,35 @@ of type @racket[Syntax-E].}
|
|||
@racket[(Sexpof Syntax)].}
|
||||
|
||||
|
||||
@section{Control}
|
||||
|
||||
The following types represent @rtech{prompt tag}s and
|
||||
keys for @rtech{continuation mark}s for use with delimited continuation
|
||||
functions and continuation mark functions.
|
||||
|
||||
@defform[(Prompt-Tag s t)]{
|
||||
A prompt tag to be used in a continuation prompt whose body
|
||||
produces the type @racket[_s] and whose handler has the type
|
||||
@racket[_t]. The type @racket[_t] must be a function type.
|
||||
|
||||
The domain of @racket[_t] determines the type of the values
|
||||
that can be aborted, using @racket[abort-current-continuation],
|
||||
to a prompt with this prompt tag.
|
||||
|
||||
@ex[(make-continuation-prompt-tag 'prompt-tag)]
|
||||
}
|
||||
|
||||
@defform[(Continuation-Mark-Key t)]{
|
||||
A continuation mark key that is used for continuation mark
|
||||
operations such as @racket[with-continuation-mark] and
|
||||
@racket[continuation-mark-set->list]. The type @racket[_t]
|
||||
represents the type of the data that is stored in the
|
||||
continuation mark with this key.
|
||||
|
||||
@ex[(make-continuation-mark-key 'mark-key)]
|
||||
}
|
||||
|
||||
|
||||
@section{Other Type Constructors}
|
||||
|
||||
@defform*[#:id -> #:literals (* ...)
|
||||
|
|
Loading…
Reference in New Issue
Block a user