This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Error with call/cc


Hi,

I just spotted a problem with Kawa's call/cc. Here's what Kawa does:

$ kawa
#|kawa:1|# (+ 1 (call/cc (lambda (k) (+ 2 (k 3)))))
/dev/stdin:1:6: warning - unreachable code
5

Here's what two other Scheme implementations do:

$ racket
Welcome to Racket v5.3.
> (+ 1 (call/cc (lambda (k) (+ 2 (k 3)))))
4

$ guile
guile> (+ 1 (call/cc (lambda (k) (+ 2 (k 3)))))
4

The example is from


http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-15.html#node_sec_13.1


My environment is stock Fedora 17 Linux on x64 with Oracle JDK 1.7.0_06 and Kawa svn HEAD.

--
Weiqi Gao
weiqigao@gmail.com
http://www.weiqigao.com/blog/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]