[Top][All Lists]
[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: |
Wed, 25 Apr 2007 00:29:17 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.98 (gnu/linux) |
"Lennart Borgman (gmail)" <address@hidden> writes:
> David Kastrup wrote:
>
>> '(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.
>
> And strings?
Aren't grounded at all. (concat "a" "b") does not make "b" part of
the result. So (concat "a" "") and (concat "b" "") would not share
the same "" even if one replaced both of them by the same object.
Every created string is a separate object not containing any other
string as a part. The same is not true for lists. You can, for
example, modify a sublist and in the process change the list
containing it.
This does not happen for substrings.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- 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, 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, 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 <=
- 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
- Re: Using empty_string as the only "" string, Andreas Schwab, 2007/04/25
- Re: Using empty_string as the only "" string, David Kastrup, 2007/04/25
- Re: Using empty_string as the only "" string, Andreas Schwab, 2007/04/25
- Re: Using empty_string as the only "" string, Lennart Borgman (gmail), 2007/04/24
- Re: Using empty_string as the only "" string, Andreas Schwab, 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, Miles Bader, 2007/04/24