[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using empty_string as the only "" string
From: |
Johan Bockgård |
Subject: |
Re: Using empty_string as the only "" string |
Date: |
Wed, 25 Apr 2007 01:44:10 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) |
Miles Bader <address@hidden> writes:
> I disagree. I don't think most people expect much one way or the other
> in this case, _especially_ because we're talking about lexical constants
> (for instance, I expect very few people would be surprised if the
> compiler merged various lexical constants).
How about this then?
(funcall
(byte-compile
(lambda ()
(let ((s1 (concat "ab" "c"))
(s2 (concat "a" "bc")))
(eq s1 s2)))))
=> t
There used to be a note about this in FOR-RELEASE, but it was removed:
revision 1.411
date: 2006-11-18 22:07:44 +0100; author: cyd; state: Exp; lines: +0 -3
** Prevent byte compiler from causing spurious string sharing
when it optimizes away calls to functions such as concat.
Fixed.
--
Johan Bockgård
- Re: Using empty_string as the only "" string, (continued)
- 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
- Re: Using empty_string as the only "" string, Juanma Barranquero, 2007/04/24
- Re: Using empty_string as the only "" string, Miles Bader, 2007/04/24
- Re: Using empty_string as the only "" string, Juanma Barranquero, 2007/04/24
- Re: Using empty_string as the only "" string, Miles Bader, 2007/04/24
- Re: Using empty_string as the only "" string,
Johan Bockgård <=
- Re: Using empty_string as the only "" string, Miles Bader, 2007/04/24
- Re: Using empty_string as the only "" string, Richard Stallman, 2007/04/25
- Re: Using empty_string as the only "" string, Daniel Brockman, 2007/04/26
- Re: Using empty_string as the only "" string, Richard Stallman, 2007/04/27
- Re: Using empty_string as the only "" string, Richard Stallman, 2007/04/24
- Re: Using empty_string as the only "" string, Juanma Barranquero, 2007/04/25
Re: Using empty_string as the only "" string, Richard Stallman, 2007/04/24
Re: Using empty_string as the only "" string, Stefan Monnier, 2007/04/24