Fix fcontrol with prompt tag

This commit is contained in:
Alexis King 2019-11-30 05:33:49 -06:00
parent 406fe85144
commit e9fb60588b
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -46,7 +46,8 @@
(abort-current-continuation
prompt-tag
f
k))))
k))
prompt-tag))
(define-syntax %
(syntax-rules ()