From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: (aset UNIBYTE-STRING MULTIBYTE-CHAR) Date: Thu, 14 Feb 2008 08:13:51 +0900 Message-ID: <87skzwsb4g.fsf@catnip.gol.com> References: Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202944526 22886 80.91.229.12 (13 Feb 2008 23:15:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Feb 2008 23:15:26 +0000 (UTC) Cc: Kenichi Handa , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 14 00:15:49 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JPQpB-0006jZ-Hm for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2008 00:15:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPQoh-0002XZ-Db for ged-emacs-devel@m.gmane.org; Wed, 13 Feb 2008 18:15:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JPQnk-00028m-Q9 for emacs-devel@gnu.org; Wed, 13 Feb 2008 18:14:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPQnj-00027n-0j for emacs-devel@gnu.org; Wed, 13 Feb 2008 18:14:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPQni-00027b-MC for emacs-devel@gnu.org; Wed, 13 Feb 2008 18:14:02 -0500 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JPQnb-0005OP-KT; Wed, 13 Feb 2008 18:13:56 -0500 Original-Received: from 203-216-97-023.dsl.gol.ne.jp ([203.216.97.23] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1JPQnZ-0002iR-CK; Thu, 14 Feb 2008 08:13:53 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 15AF82FF7; Thu, 14 Feb 2008 08:13:52 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: (Richard Stallman's message of "Wed, 13 Feb 2008 17:01:00 -0500") Original-Lines: 17 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89000 Archived-At: Richard Stallman writes: > But it is not terribly hard to make this case work once again, given > that all strings are indirect. At worst, one can make a new string > with the modified contents, then swap the `data' pointers between the > new string and the old one. As Stefan noted, though, the entire idea of using aset to store into a multibyte string is rather dodgy...I think there's a certain expectation by users of aset that the operation follows general array behavior, most notably O(1) complexity, and storing into a multibyte string doesn't follow that. If we can discourage this usage without too much fallout, that seems a lot better in the long run. -Miles -- Twice, adv. Once too often.