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: ptrdiff_t misuse Date: Sat, 07 Jul 2012 06:59:40 -0400 Message-ID: References: <83lij66yq9.fsf@gnu.org> <4FEDB953.1010800@yandex.ru> <4FEEA720.2040405@cs.ucla.edu> <4FEEFBAB.6000404@cs.ucla.edu> <4FF3E1D6.1050103@cs.ucla.edu> <83bojv4h13.fsf@gnu.org> <4FF48920.501@cs.ucla.edu> <83vci22mr0.fsf@gnu.org> <83obnu2e8s.fsf@gnu.org> <4FF62C92.8090406@cs.ucla.edu> <83liix2xvp.fsf@gnu.org> <4FF69476.2070701@cs.ucla.edu> <83k3yh2spu.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341658805 25840 80.91.229.3 (7 Jul 2012 11:00:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 7 Jul 2012 11:00:05 +0000 (UTC) Cc: Eli Zaretskii , Paul Eggert , dmantipov@yandex.ru, emacs-devel@gnu.org To: Samuel Bronson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 07 13:00:04 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 1SnSk5-0000uc-Vx for ged-emacs-devel@m.gmane.org; Sat, 07 Jul 2012 13:00:02 +0200 Original-Received: from localhost ([::1]:51915 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnSk5-0000Rs-3R for ged-emacs-devel@m.gmane.org; Sat, 07 Jul 2012 07:00:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnSk2-0000Ri-0n for emacs-devel@gnu.org; Sat, 07 Jul 2012 06:59:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SnSk0-0005oK-EG for emacs-devel@gnu.org; Sat, 07 Jul 2012 06:59:57 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:39699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnSk0-0005o6-AV; Sat, 07 Jul 2012 06:59:56 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q67AxfES009949; Sat, 7 Jul 2012 06:59:42 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id A1A4AAE303; Sat, 7 Jul 2012 06:59:40 -0400 (EDT) In-Reply-To: (Samuel Bronson's message of "Fri, 6 Jul 2012 17:33:02 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4271=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4271> : streams <780048> : uri <1158991> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:151480 Archived-At: >>> Stefan, do you object to making hscroll (and other values that come >>> from Lisp) EMACS_INT? >> Yes. A large value makes no sense. It should be int. >> And I'm perfectly happy with taking very-large values and letting them >> wraparound. Those values are bogus anyway. > ... but isn't that Undefined Behavior? In the context of Emacs I'm not scared of undefined behavior. Stefan