[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31688: 26.1.50; Byte compiler confuses two string variables
From: |
Drew Adams |
Subject: |
bug#31688: 26.1.50; Byte compiler confuses two string variables |
Date: |
Sat, 2 Jun 2018 17:40:47 -0700 (PDT) |
> just searched the Elisp reference
> looking for any any warnings not to use destructive functions on
> literals, and didn't find anything.
It's not really about destructive functions.
It's about the fact that you might not have two different
strings, and you should not assume that you do.
It's about `eq'. For the Emacs byte-compiler, apparently,
multiple occurrences of a string literal in the code are
compiled to the same string object. Thinking you have two
separate strings is the problem. Anything you might want
to think or say about the use of "destructive" functions
follows from the fact that you have a single string.
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Gemini Lasswell, 2018/06/02
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Noam Postavsky, 2018/06/02
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Gemini Lasswell, 2018/06/02
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Drew Adams, 2018/06/02
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Phil Sainty, 2018/06/02
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Noam Postavsky, 2018/06/02
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Phil Sainty, 2018/06/03
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Andreas Schwab, 2018/06/03
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Phil Sainty, 2018/06/04
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Eli Zaretskii, 2018/06/04
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Andreas Schwab, 2018/06/04
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Eli Zaretskii, 2018/06/08
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Michael Heerdegen, 2018/06/02