Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#1474 closed defect (wontfix)

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

Reported by: megane Owned by: kon
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 3 months ago by megane

  • Resolution set to wontfix
  • Status changed from new to closed

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

comment:2 Changed 3 months 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.