Dear Sir/Madam,
I think there is a bug in the implementation of
call-with-current-continuation in guile-1.4.
Have a look at this session output:
----------------------
[manuel@manuel manuel]$ guile
guile> (define cont #f)
guile> (+ 5 (call-with-current-continuation
(lambda (k)
(set! cont k)
5)))
10
guile> (cont 7)
standard input:2:1: In procedure + in expression (+ 5
(call-with-current-continuation #)):
standard input:2:1: Wrong type argument: (((proc) #<procedure (k)>))
ABORT: (wrong-type-arg)
Type "(backtrace)" to get more information or "(debug)" to enter the debugger.
guile>
----------------------
If I understand R5RS, (cont 7) should evaluate to 12, and this is confirmed
by several other implementations of Scheme.
Am I right?
Thanks and best regards,
- Manuel Heras -
_______________________________________________
Bug-guile mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-guile