[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using empty_string as the only "" string
From: |
Andreas Schwab |
Subject: |
Re: Using empty_string as the only "" string |
Date: |
Tue, 24 Apr 2007 20:11:33 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux) |
"Juanma Barranquero" <address@hidden> writes:
> With your patch, (eq "" "") => t
>
> So:
>
> ELISP> (eq (substring "ab" 0) (substring "ab" 0))
> nil
> ELISP> (eq (substring "ab" 1) (substring "ab" 1))
> nil
> ELISP> (eq (substring "ab" 2) (substring "ab" 2))
> t
>
> That doesn't seem a nice behaviour.
I see nothing wrong with that. If you want to compare strings you have to
use equal or string-equal anyway.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Using empty_string as the only "" string, Dmitry Antipov, 2007/04/24
- Re: Using empty_string as the only "" string, Juanma Barranquero, 2007/04/24
- Re: Using empty_string as the only "" string,
Andreas Schwab <=
- Re: Using empty_string as the only "" string, Juanma Barranquero, 2007/04/24
- Re: Using empty_string as the only "" string, Andreas Schwab, 2007/04/24
- Re: Using empty_string as the only "" string, Juanma Barranquero, 2007/04/24
- Re: Using empty_string as the only "" string, Andreas Schwab, 2007/04/24
- Re: Using empty_string as the only "" string, Juanma Barranquero, 2007/04/24
- Re: Using empty_string as the only "" string, David Kastrup, 2007/04/24
- Re: Using empty_string as the only "" string, Lennart Borgman (gmail), 2007/04/24
- Re: Using empty_string as the only "" string, David Kastrup, 2007/04/24
- Re: Using empty_string as the only "" string, Andreas Schwab, 2007/04/24
- Re: Using empty_string as the only "" string, Kenichi Handa, 2007/04/24