From: Ken Raeburn <raeburn@raeburn.org>
To: Paul Eggert <eggert@CS.UCLA.EDU>
Cc: Dmitry Antipov <antipov@mvista.com>, emacs-devel@gnu.org
Subject: Re: immediate strings #2
Date: Wed, 30 Nov 2011 11:43:16 -0500 [thread overview]
Message-ID: <75F68EF4-5C72-4A02-8DE4-1B699576A6B3@raeburn.org> (raw)
In-Reply-To: <4ED5F8C9.7060703@cs.ucla.edu>
On Nov 30, 2011, at 04:35, Paul Eggert wrote:
> You can get the other bit from 'size_byte' if you change it
> so that it's always nonnegative. This can be done by using
> 0 rather than -1 as its special value indicating that it
> is unibyte and the actual byte size is given in 'size'.
Currently it appears that we can have both unibyte and multibyte zero-length strings, and the multibyteness is preserved if you "concat" with a simple ASCII string. I'm not sure any existing code in the wild would care, but it sounds like what you're suggesting would be a functional change that makes that no longer work.
Ken
next prev parent reply other threads:[~2011-11-30 16:43 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-28 9:11 immediate strings #2 Dmitry Antipov
2011-11-28 17:33 ` Stefan Monnier
2011-11-28 19:48 ` Ken Raeburn
2011-11-28 20:10 ` Andreas Schwab
2011-11-28 21:54 ` Stefan Monnier
2011-11-28 22:25 ` Andreas Schwab
2011-11-29 0:57 ` Ken Raeburn
2011-11-29 8:44 ` Andreas Schwab
2011-11-29 15:48 ` Ken Raeburn
2011-11-29 16:08 ` Andreas Schwab
2011-11-30 16:43 ` Ken Raeburn
2011-11-28 22:18 ` Paul Eggert
2011-11-29 2:07 ` Stefan Monnier
2011-11-29 3:37 ` Dmitry Antipov
2011-11-29 8:50 ` Paul Eggert
2011-11-30 5:37 ` Dmitry Antipov
2011-11-30 9:35 ` Paul Eggert
2011-11-30 16:43 ` Ken Raeburn [this message]
2011-11-30 21:44 ` Paul Eggert
2011-11-29 3:17 ` Dmitry Antipov
2011-11-29 5:29 ` Dmitry Antipov
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=75F68EF4-5C72-4A02-8DE4-1B699576A6B3@raeburn.org \
--to=raeburn@raeburn.org \
--cc=antipov@mvista.com \
--cc=eggert@CS.UCLA.EDU \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).