[Top][All Lists]

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

Problem with cond macro.

From: Panagiotis Vossos
Subject: Problem with cond macro.
Date: Tue, 16 Apr 2002 01:41:12 +0300
User-agent: Gnus v5.8.8

Ok, I just started studying macros, so I might be missing something
obvious, but the following example from r5rs doesn't work correctly
with guile:

guile> (version)
guile> (let ((=> #f))
         (cond (#t => 'ok)))
standard input:3:10: In expression (cond (#t => #)):
standard input:3:10: Wrong type to apply: ok
ABORT: (misc-error)

Type "(backtrace)" to get more information or "(debug)" to enter the debugger.

SCM and s48 correctly return 'ok.  I wondered if something was wrong
with the built-in 'cond', so I defined 'my-cond' using the definition
from the last section of r5rs.  Unfortunately, the above example still
didn't work.  Any ideas?


reply via email to

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