Re: Two questions about eq
- From: "John Thingstad" <jpthing@xxxxxxxxx>
- Date: Mon, 31 Mar 2008 19:23:55 +0200
På Mon, 31 Mar 2008 17:49:09 +0200, skrev Spiros Bousbouras <spibou@xxxxxxxxx>:
2) Under what (realistic) circumstances might
(eq 1 1) be false ?
try (eq (1+ most-positive-fixnum) (1+ most-positive-fixnum))..
This doesn't 'fit' into a cons cell so you get the place of a bignum instead.
So using eq to compare values is asking for trouble.
--------------
John Thingstad
.
- References:
- Two questions about eq
- From: Spiros Bousbouras
- Two questions about eq
- Prev by Date: Re: Listing slots in CLOS
- Next by Date: Re: Appropriate case for a macro?
- Previous by thread: Re: Two questions about eq
- Next by thread: Appropriate case for a macro?
- Index(es):
Relevant Pages
|