[gambit-list] call/cc behavior in gambit-c vs. plt-scheme

Cristian Baboi cristi at ot.onrc.ro
Wed Jun 11 06:34:25 EDT 2008


> Christian,

> You're quite correct. It would appear that the final act in the  
> continuation is to load the file. Hence the recursive loop. Can't say  
> why though. Maybe a bug perhaps?
>
> Nick Walton

I tryed this:

(define (call/ccc x) (call-with-current-continuation x))

(define coco 1)
(define (run)
  (begin
   (display "begin") (newline)
   (call/ccc (lambda (c) (set! coco c)))
   (display "again") (newline)
   (display "end") (newline)
  )
)


(run)
(coco 13)

and this time I've got:
- mzscheme:
begin
again
end
again
end

- gambit-c:
begin
again
end
again
end
again
end
again
end
again
end
....



________ Information from NOD32 ________
This message was checked by NOD32 Antivirus System for Linux Mail Servers.
  part000.txt - is OK
http://www.eset.com



More information about the Gambit-list mailing list