Reference: PLT Scheme

1`` | Language Model
2`` | Syntactic Forms
3`` | Datatypes
4`` | Structures
5`` | Classes and Objects
6`` | Units
7`` | Contracts
8`` | Pattern Matching
9`` | Control Flow
10`` | Concurrency
11`` | Macros
12`` | Input and Output
13`` | Reflection and Security
14`` | Operating System
15`` | Memory Management
16`` | Running PLT Scheme
| Bibliography
| Index

On this page:

with-continuation-mark

Version: 4.0.2
contents index
← prev up next →

#### 2.19`` Continuation Marks: with-continuation-mark

(with-continuation-mark key-expr val-expr result-expr)

The key-expr, mark-expr, and result-expr expressions are evaluated in order. After key-expr is evaluated to obtain a key and mark-expr is evaluated to obtain a mark, the key is mapped to the mark in the current continuation’s initial frame. If the frame already has a mark for the key, it is replaced. Finally, the result-expr is evaluated; the continuation for evaluating result-expr is the continuation of the with-continuation-mark expression (so the result of the resultbody-expr is the result of the with-continuation-mark expression, and result-expr is in tail position for the with-continuation-mark expression).

Continuation Marks provides more information on continuation marks.

contents index
← prev up next →