[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible bug in call-with-current-continuation

From: Manuel Heras-Gilsanz
Subject: Possible bug in call-with-current-continuation
Date: Fri, 30 Mar 2001 16:20:06 +0200

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:

address@hidden manuel]$ guile
guile> (define cont #f)
guile> (+ 5 (call-with-current-continuation
                (lambda (k)
                   (set! cont k)
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.

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 -

reply via email to

[Prev in Thread] Current Thread [Next in Thread]