Fix fcontrol
with prompt tag
This commit is contained in:
parent
406fe85144
commit
e9fb60588b
|
@ -187,6 +187,12 @@
|
|||
#:tag pt)))
|
||||
12)
|
||||
|
||||
(ctest (let ([pt (make-continuation-prompt-tag)])
|
||||
(+ 1 (% (fcontrol 5 #:tag pt)
|
||||
(λ (v k) (k v))
|
||||
#:tag pt)))
|
||||
6)
|
||||
|
||||
;; ------------------------------------------------------------
|
||||
;; spawn
|
||||
;; example from Queinnec & Serpete, POPL'91
|
||||
|
|
|
@ -46,7 +46,8 @@
|
|||
(abort-current-continuation
|
||||
prompt-tag
|
||||
f
|
||||
k))))
|
||||
k))
|
||||
prompt-tag))
|
||||
|
||||
(define-syntax %
|
||||
(syntax-rules ()
|
||||
|
|
Loading…
Reference in New Issue
Block a user