From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Why (substring "abc" 0 4) does not return "abc" instead of an error? Date: Mon, 16 Jul 2012 11:40:03 +0200 Message-ID: References: <87fw8smxag.fsf@gnu.org> <877gu4mv85.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1342431662 15541 80.91.229.3 (16 Jul 2012 09:41:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2012 09:41:02 +0000 (UTC) Cc: Bastien , emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 16 11:41:02 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SqhnY-0002vE-Jc for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2012 11:41:00 +0200 Original-Received: from localhost ([::1]:45467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqhnX-0003cq-SY for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2012 05:40:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqhnQ-0003ci-Dn for emacs-devel@gnu.org; Mon, 16 Jul 2012 05:40:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SqhnL-0003vv-Cl for emacs-devel@gnu.org; Mon, 16 Jul 2012 05:40:52 -0400 Original-Received: from mail-pb0-f41.google.com ([209.85.160.41]:59277) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqhnJ-0003vI-2G; Mon, 16 Jul 2012 05:40:45 -0400 Original-Received: by pbbrp2 with SMTP id rp2so11228688pbb.0 for ; Mon, 16 Jul 2012 02:40:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=VbP12tqhHiVWK1TAK1i77Oy3i1bRSBOtBgZafh0u9x4=; b=qGXwcllSxDYW0fd0d+woRV0INB8gZJTr3mQaSHN9Ho7E3BfKeuOn3RQ9SOmuzlTAp/ lVMGwd9rHAUcfLZJ5lD9/0b97nsQskJajBUI+TWLkjEXb0z/EziOak9ZNFHBpUqgvJUG yQxdUFTN+VUdQbC2sAsuyizkI6TQDtQ0ixjOVjc9D5B3qG/IQ2ax5wEEviPvltj9SBNd nQhUkAbJSjuO7+Slhz+TsKkFbgmUIThjWMZKNM2Eh+kIqVecrcGVsXFuYxF/eYetSluZ 0j2WLgCHD4/IOH0Wg4VQ/FuO1Xj4nJfx9hri/FyNwBTYSNU8Gz/2dHKZNT7VXFUh4i3N xPsw== Original-Received: by 10.68.194.201 with SMTP id hy9mr25087324pbc.69.1342431644056; Mon, 16 Jul 2012 02:40:44 -0700 (PDT) Original-Received: by 10.142.162.16 with HTTP; Mon, 16 Jul 2012 02:40:03 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.41 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:151659 Archived-At: On Mon, Jul 16, 2012 at 9:38 AM, Andreas Schwab wrote: > That's not much different from ("foo" == "foo") in C. Using eq for > comparing non-atoms is seldom useful. I know that, and I acknowledged it's not a bug. It's just weird that a progression like that, in which just an index is varying, suddenly changes result. But I know full well why does it happen. Juanma