From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: integer overflow Date: Sat, 06 Mar 2010 10:45:12 -0500 Message-ID: References: <4B8147A9.7030504@gmail.com> <87ljemdzxo.fsf@stupidchicken.com> <4B83682D.5010804@gnu.org> <87vddmpw4s.fsf@stupidchicken.com> <87hbp2fwoi.fsf@gnu.org> <87wrxrr4md.fsf@gnu.org> <3vsk8ecg6a.fsf@fencepost.gnu.org> <873a0euot4.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267912466 20348 80.91.229.12 (6 Mar 2010 21:54:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 6 Mar 2010 21:54:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 06 22:54:22 2010 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.69) (envelope-from ) id 1No1ZQ-00063g-2a for ged-emacs-devel@m.gmane.org; Sat, 06 Mar 2010 22:30:00 +0100 Original-Received: from localhost ([127.0.0.1]:60278 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnwCX-0006Ve-4n for ged-emacs-devel@m.gmane.org; Sat, 06 Mar 2010 10:46:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NnwBn-0006CY-Ey for emacs-devel@gnu.org; Sat, 06 Mar 2010 10:45:15 -0500 Original-Received: from [140.186.70.92] (port=49085 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnwBm-0006Bu-LX for emacs-devel@gnu.org; Sat, 06 Mar 2010 10:45:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NnwBl-0003OW-N8 for emacs-devel@gnu.org; Sat, 06 Mar 2010 10:45:14 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:64981 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NnwBl-0003OR-J0 for emacs-devel@gnu.org; Sat, 06 Mar 2010 10:45:13 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEANMGkktLd+K+/2dsb2JhbACbS3S2CIR4BIMXh3Q X-IronPort-AV: E=Sophos;i="4.49,595,1262581200"; d="scan'208";a="57646568" Original-Received: from 75-119-226-190.dsl.teksavvy.com (HELO pastel.home) ([75.119.226.190]) by ironport2-out.pppoe.ca with ESMTP; 06 Mar 2010 10:45:12 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 617C98866; Sat, 6 Mar 2010 10:45:12 -0500 (EST) In-Reply-To: (Helmut Eller's message of "Sat, 06 Mar 2010 08:03:41 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:121690 >>> Can you summarize how it's supposed to work? >> The change affects the Lisp reader: reading "536870912" or any larger >> number now gives you a float Lisp object, instead of an integer Lisp >> object (since there is no way to represent 536870912 or larger as >> integers). 536870911 and below are still read as integers. > What's the point of doing that? I would much prefer if read would just > raise an error. There are many cases where it's important to read an integer from some other program, so it's important to be able to read integers larger the Elisp's largest fixnum (tho less so for integers larger than the host system's natural "int"). Examples are file sizes, process ids, user ids, ... Stefan