Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#1474 closed defect (wontfix)

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

Reported by: megane Owned by: Kon Lovett
Priority: major Milestone: someday
Component: extensions Version:
Keywords: Cc:
Estimated difficulty:

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'

Change History (2)

comment:1 Changed 6 years ago by megane

Resolution: wontfix
Status: newclosed

Known limitation of call/cc implementations:
http://okmij.org/ftp/continuations/against-callcc.html#traps

comment:2 Changed 6 years ago by megane

I had a short discussion with Kon on IRC and he OK'd this resolution. Just for the record.

Note: See TracTickets for help on using tickets.