From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Why does using aset sometimes output raw bytes?
Date: Sun, 09 Dec 2018 16:20:59 -0500 [thread overview]
Message-ID: <jwvk1ki2yf1.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: 83lg4y30vz.fsf@gnu.org
>> It's not the implementation, but the semantics of unibyte/multibyte
>> strings presumes that the difference doesn't matter much for ASCII-only
>> strings, which is mostly true but isn't true in the case of `aset`.
> The same is true about concat, btw.
I think it's less severe (`aset` can end up changing (by side-effect)
a unibyte string to multibyte, i.e. changing the nature of the object,
which I believe is the only time we do something like that), but yes
similar problems appear elsewhere (hence the "mostly" above).
Stefan
next prev parent reply other threads:[~2018-12-09 21:20 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-09 15:16 Why does using aset sometimes output raw bytes? Stephen Berman
2018-12-09 15:20 ` Eli Zaretskii
2018-12-09 15:46 ` Stephen Berman
2018-12-09 15:56 ` Stephen Berman
2018-12-09 17:12 ` Eli Zaretskii
2018-12-09 17:32 ` Stephen Berman
2018-12-09 17:47 ` Eli Zaretskii
2018-12-09 18:50 ` Stephen Berman
2018-12-09 18:55 ` Eli Zaretskii
2018-12-09 17:10 ` Stefan Monnier
2018-12-09 17:20 ` Stephen Berman
2018-12-09 19:20 ` Stefan Monnier
2018-12-09 20:23 ` Eli Zaretskii
2018-12-09 21:20 ` Stefan Monnier [this message]
2018-12-10 5:59 ` Eli Zaretskii
2018-12-10 13:56 ` Stefan Monnier
2018-12-09 20:43 ` Stephen Berman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvk1ki2yf1.fsf-monnier+gmane.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).