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: Inconsistency in `string-to-number' Date: Fri, 24 Apr 2009 16:13:52 +0200 Message-ID: References: <47083.128.165.123.18.1240532205.squirrel@webmail.lanl.gov> <833abygwxo.fsf@gnu.org> <83zle6fatk.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240582634 2375 80.91.229.12 (24 Apr 2009 14:17:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Apr 2009 14:17:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 24 16:18:34 2009 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 1LxMC0-0006uA-IZ for ged-emacs-devel@m.gmane.org; Fri, 24 Apr 2009 16:15:52 +0200 Original-Received: from localhost ([127.0.0.1]:49921 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxMAb-0002Q4-1L for ged-emacs-devel@m.gmane.org; Fri, 24 Apr 2009 10:14:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LxMAW-0002Pv-AW for emacs-devel@gnu.org; Fri, 24 Apr 2009 10:14:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LxMAR-0002PP-Qj for emacs-devel@gnu.org; Fri, 24 Apr 2009 10:14:19 -0400 Original-Received: from [199.232.76.173] (port=48913 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxMAR-0002PM-Hh for emacs-devel@gnu.org; Fri, 24 Apr 2009 10:14:15 -0400 Original-Received: from mail-bw0-f161.google.com ([209.85.218.161]:47024) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LxMAP-0002P6-Ni; Fri, 24 Apr 2009 10:14:13 -0400 Original-Received: by bwz5 with SMTP id 5so1160371bwz.42 for ; Fri, 24 Apr 2009 07:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=FWUSUMvflYUu/Aq5HnmkkUEUSezWESZHmb/PFghLRAE=; b=Rbr7b7/CpKOTZOlAQ9P06aPdg6w4BY2Rm0QRXE0GssGPYTXa5Tzr7djexHdcMJJcLK OeLZ4qzzZvb0O5xVgxWMr8e6yGaF6BHh/zTSNA1IzOKuM/htwOvOe/vWz9W6DJnwjdWz RIj1k9k3nYx61v5b7RZHA+1vzdr0FzT1ugE6s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=XgtQSmMMgboc+ntNxKmqTA6Fx3A8nmESsuRmlIogsv3C79nSWLXv/qKnVryIPpy00A RXwRiVICGxDP3ftfobgdtWBxqgOFyuIj+OGaFwd53yRHHC/qxAzjxAxas3TwTs7Or7Or Ep74jdc9ZeaegKHg0zmVbGKg9jw4zAa9O5yPU= Original-Received: by 10.223.127.8 with SMTP id e8mr763613fas.80.1240582452275; Fri, 24 Apr 2009 07:14:12 -0700 (PDT) In-Reply-To: <83zle6fatk.fsf@gnu.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:110463 Archived-At: > Which is why I thing we should fix it the other way around: to > recognize "1.2:" as a number. That cannot possibly break anything, so > it should be safe to do before the release, IMO. It's a long shot, but there could conceivably be code that relies in truncation of "float + non-space", i.e., that expects ("1.2:" => 1). So it's not true that it cannot possibly break anything; just unlikely. Yes, code that relies on "1.2:" => 1 is abusing a non-documented quirk; but code that relies on "1:" => 1 is also doing the same thing. (That said, I'm not going to push for one behavior over the other.) Juanma