(case 'quote ('lambda 1) (otherwise 2))
- From: "David Wragg" <david@xxxxxxxxx>
- Date: 29 Jan 2007 13:48:14 -0800
I have found 2 Common Lisp implementations that think that the above
code evaluates to 1. This is quite surprising to me.
SBCL 1.0.2 (on Fedora Core 6 x86-64, from the extras repository)
* (case 'quote ('lambda 1) (otherwise 2))
[...]
1
CLisp 2.41 (as above):
[1]> (case 'quote ('lambda 1) (otherwise 2))
1
Both implementations give less surprising results for (eq 'quote
'lambda) and (case 'lambda ('quote 1) (otherwise 2)).
Is this the correct behavior (and if so, where should I look in the
Hyperspec to understand it)? Or do these independent implementations
share an obscure bug?
.
- Follow-Ups:
- Re: (case 'quote ('lambda 1) (otherwise 2))
- From: Tim Bradshaw
- Re: (case 'quote ('lambda 1) (otherwise 2))
- From: Pascal Bourguignon
- Re: (case 'quote ('lambda 1) (otherwise 2))
- From: Greg Buchholz
- Re: (case 'quote ('lambda 1) (otherwise 2))
- From: Greg Buchholz
- Re: (case 'quote ('lambda 1) (otherwise 2))
- Prev by Date: Re: Is there any eq t test in Common Lisp?
- Next by Date: Replacing Xaml with Lisp on Windows Vista
- Previous by thread: All Your GUIs Are Belong to Us (Die, McCLIM! Die!!)
- Next by thread: Re: (case 'quote ('lambda 1) (otherwise 2))
- Index(es):
Relevant Pages
|