Summary

[F-operator] Shift/reset working differently than in guile

Metadata

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.