[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)
"1.5.6"
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.
guile>
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?
panagiotis
- Problem with cond macro.,
Panagiotis Vossos <=
- Re: Problem with cond macro., Julian v. Bock, 2002/04/16
- Re: Problem with cond macro., Panagiotis Vossos, 2002/04/16
- Re: Problem with cond macro., Julian v. Bock, 2002/04/16
- Re: Problem with cond macro., Joshua Judson Rosen, 2002/04/16
- Re: Problem with cond macro., Panagiotis Vossos, 2002/04/16
- Re: Problem with cond macro., Neil Jerram, 2002/04/17
- Re: Problem with cond macro., Neil Jerram, 2002/04/20
- Re: Problem with cond macro., Neil Jerram, 2002/04/20
Re: Problem with cond macro., Keith Wright, 2002/04/17