From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.devel Subject: Re: immediate strings #2 Date: Wed, 30 Nov 2011 11:43:16 -0500 Message-ID: <75F68EF4-5C72-4A02-8DE4-1B699576A6B3@raeburn.org> References: <4ED35057.8010103@yandex.ru> <4ED4089C.3050203@cs.ucla.edu> <4ED49CC9.6080808@cs.ucla.edu> <4ED5C0FD.8030301@yandex.ru> <4ED5F8C9.7060703@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1322671411 2789 80.91.229.12 (30 Nov 2011 16:43:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2011 16:43:31 +0000 (UTC) Cc: Dmitry Antipov , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 30 17:43:27 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RVnFk-00041n-6G for ged-emacs-devel@m.gmane.org; Wed, 30 Nov 2011 17:43:24 +0100 Original-Received: from localhost ([::1]:42737 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVnFj-0005Zn-G4 for ged-emacs-devel@m.gmane.org; Wed, 30 Nov 2011 11:43:23 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:57093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVnFh-0005Zc-0w for emacs-devel@gnu.org; Wed, 30 Nov 2011 11:43:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVnFg-00035n-2f for emacs-devel@gnu.org; Wed, 30 Nov 2011 11:43:20 -0500 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:55676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVnFf-00035i-WB for emacs-devel@gnu.org; Wed, 30 Nov 2011 11:43:20 -0500 Original-Received: by yenq10 with SMTP id q10so770745yen.0 for ; Wed, 30 Nov 2011 08:43:19 -0800 (PST) Original-Received: by 10.236.181.134 with SMTP id l6mr4990806yhm.18.1322671399279; Wed, 30 Nov 2011 08:43:19 -0800 (PST) Original-Received: from squish.raeburn.org (c-66-31-202-94.hsd1.ma.comcast.net. [66.31.202.94]) by mx.google.com with ESMTPS id i22sm4316644yhm.10.2011.11.30.08.43.18 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Nov 2011 08:43:18 -0800 (PST) In-Reply-To: <4ED5F8C9.7060703@cs.ucla.edu> X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.213.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146366 Archived-At: 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=