Summary
[F-operator] Shift/reset working differently than in guile
Metadata
- Id: 690072755b267e7d25f4706acee6f5493799f16c
- Trac id: 1474
- Type: defect
- Reporter: megane
- Owner: kon
- Cc:
- Status: closed
- Component: extensions
- Estimated difficulty:
- Resolution: wontfix
- Priority: major
- Milestone: someday
- Version:
- Changetime: 2018-06-11 18:11:48 UTC
- Created: 2018-06-11 16:32:26 UTC
- Keywords:
Description
;; (use-modules (ice-9 control))
;; (use shift-reset)
(let ((captured-k
(reset (display (shift f f)))))
(display
(string-append
"str: '"
(with-output-to-string
(lambda ()
(captured-k "this should go to the string")))
"'")))
;; $ csi -qbn test.scm
;; this should go to the stringstr: ''
;; $ guile test.scm
;; str: 'this should go to the string'
Changes and comments
[2018-06-11 18:02:34 UTC] megane changed status from new to closed
[2018-06-11 18:02:34 UTC] megane set resolution to wontfix
[2018-06-11 18:02:34 UTC] megane wrote:
Known limitation of call/cc implementations: http://okmij.org/ftp/continuations/against-callcc.html#traps
[2018-06-11 18:11:48 UTC] megane wrote:
I had a short discussion with Kon on IRC and he OK'd this resolution. Just for the record.