unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Problem with cond macro.
@ 2002-04-15 22:41 Panagiotis Vossos
  2002-04-16  8:49 ` Julian v. Bock
  0 siblings, 1 reply; 15+ messages in thread
From: Panagiotis Vossos @ 2002-04-15 22:41 UTC (permalink / raw)


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

_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2002-05-07 18:41 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-15 22:41 Problem with cond macro Panagiotis Vossos
2002-04-16  8:49 ` Julian v. Bock
2002-04-16  9:45   ` Panagiotis Vossos
2002-04-16 11:10     ` Julian v. Bock
2002-04-16 15:38     ` Joshua Judson Rosen
2002-04-17  0:30       ` Panagiotis Vossos
2002-04-17 20:58         ` Neil Jerram
2002-04-20 12:21           ` Neil Jerram
2002-04-20 12:27             ` Neil Jerram
2002-04-17  5:34   ` Keith Wright
2002-04-25 21:59     ` Dirk Herrmann
2002-04-26  6:58       ` Keith Wright
2002-04-26 17:05       ` Marius Vollmer
2002-04-28 19:46         ` Dirk Herrmann
2002-05-07 18:41           ` Marius Vollmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).