Changeset 33738 in project


Ignore:
Timestamp:
11/09/16 12:49:01 (11 months ago)
Author:
juergen
Message:

continuations 1.4.1 with current-continuation renamed escape-procedure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/continuations

    r33714 r33738  
    3838=== The escape-procedure interface
    3939
    40 ==== current-continuation
    41 
    42 <procedure>(current-continuation)</procedure>
     40==== escape-procedure
     41
     42<procedure>(escape-procedure)</procedure>
    4343
    4444captures and returns the current continuation as an escape procedure.
     
    4646
    4747<enscript highlight=scheme>
    48 (let ((cc (current-continuation)))
     48(let ((cc (escape-procedure)))
    4949  (cond
    5050    ((escape-procedure? cc)
     
    5353    ((ok? cc)
    5454     ;; exceptional case
    55      ;; do something with cc ...
    56     ))
     55     ;; do something with cc ...))
    5756</enscript>
    5857
    5958Note, that the let is invoked twice, first after the call to
    60 current-continuation, then with the object val, which was
     59escape-procedure, then with the object val, which was
    6160bound to cc by calling (cc val).
    6261
     
    6564<procedure>(escape-procedure? xpr)</procedure>
    6665
    67 type predicate, defined simultaneously with current-continuation
     66type predicate, defined simultaneously with escape-procedure
    6867
    6968
     
    290289== Last update
    291290
    292 Oct 16, 2016
     291Nov 09, 2016
    293292
    294293== Author
     
    329328== Version History
    330329
     330; 1.4.1 : current-continuation renamed escape-procedure
    331331; 1.4 : escape procedure interface added
    332332; 1.3 : continuation renamed current, call added
Note: See TracChangeset for help on using the changeset viewer.