emacs-devel
[Top][All Lists]
Advanced

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

Re: Using empty_string as the only "" string


From: David Kastrup
Subject: Re: Using empty_string as the only "" string
Date: Tue, 24 Apr 2007 23:57:23 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.98 (gnu/linux)

Andreas Schwab <address@hidden> writes:

> "Juanma Barranquero" <address@hidden> writes:
>
>> On 4/24/07, Andreas Schwab <address@hidden> wrote:
>>
>>> I see nothing wrong with that.
>>
>> I do see it. The issue is not string comparison, but object identity.
>> It's no different from
>>
>> (eq 0.0 0.0) => nil
>>
>> I would be mightily surprised if
>>
>>  (eq (- 2.0 0.0) (- 2.0 0.0)) => nil
>>  (eq (- 2.0 1.0) (- 2.0 1.0)) => nil
>>  (eq (- 2.0 2.0) (- 2.0 2.0)) => t
>>
>> were true.
>
> In which way is this different from
>
>    (eq (cdr '(a)) (cdr '(b))) => t

'(a) is (cons 'a nil), '(b) is (cons 'b nil),
so indeed the cdr of both lists is the identically same value.  Lists
are _identically_ grounded.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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