bug-guile
[Top][All Lists]
Advanced

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

Re: (case ...)


From: Marijn Schouten (hkBst)
Subject: Re: (case ...)
Date: Wed, 23 May 2007 13:07:06 +0200
User-agent: Thunderbird 2.0.0.0 (X11/20070419)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ludovic � wrote:
> Hi,
> 
> "Marijn Schouten (hkBst)" <address@hidden> writes:
> 
>> define (num->bool i)
>>   (case i
>>     ('0 #f)
>>     ('1 #t)))
> 
> Is this valid R5RS code?  I would say no since it is neither a <clause>
> nor an "else clause".
> 
> (Your next message seems to imply that it is indeed incorrect.)
> 
> Thanks,
> Ludovic.

The datums of the clauses are "(quote 0)" and "(quote 1)", each of which is
valid on its own, but since the datum "quote" is contained in both clauses,
the two of them together are invalid,

Marijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGVCBZp/VmCx0OL2wRAsoeAKCgvV9jdptLh52DN2mx5R87zlFAfACgsAeT
x6GKuMKg3h33zajP5aWcPiM=
=ectF
-----END PGP SIGNATURE-----




reply via email to

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