[gambit-list] call/cc behavior in gambit-c vs. plt-scheme
cristi at ot.onrc.ro
Wed Jun 11 04:53:29 EDT 2008
Trying to learn scheme, I've made this small test file and tried it in
gambit-c and plt-scheme.
(define (call/ccc x) (call-with-current-continuation x))
(define coco 1)
(display "begin") (newline)
(call/ccc (lambda (c) (set! coco c)))
(display "again") (newline)
(display "end") (newline)
The result was:
- plt-scheme printed:
- gambit-c printed:
My question: which one is the intended behavior ?
________ Information from NOD32 ________
This message was checked by NOD32 Antivirus System for Linux Mail Servers.
part000.txt - is OK
More information about the Gambit-list