From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: ptrdiff_t misuse Date: Fri, 06 Jul 2012 16:37:27 +0300 Message-ID: <8362a12ep4.fsf@gnu.org> 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> <83ipe12s6r.fsf@gnu.org> <8739556vjm.fsf@uwakimon.sk.tsukuba.ac.jp> <83bojt2lwm.fsf@gnu.org> <87zk7d5c87.fsf@uwakimon.sk.tsukuba.ac.jp> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1341581870 6140 80.91.229.3 (6 Jul 2012 13:37:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Jul 2012 13:37:50 +0000 (UTC) Cc: eggert@cs.ucla.edu, dmantipov@yandex.ru, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 06 15:37:48 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 1Sn8jD-0002gV-9v for ged-emacs-devel@m.gmane.org; Fri, 06 Jul 2012 15:37:47 +0200 Original-Received: from localhost ([::1]:52782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sn8jC-0006u2-BZ for ged-emacs-devel@m.gmane.org; Fri, 06 Jul 2012 09:37:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sn8j6-0006tl-4q for emacs-devel@gnu.org; Fri, 06 Jul 2012 09:37:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sn8iz-00027a-PA for emacs-devel@gnu.org; Fri, 06 Jul 2012 09:37:39 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:47663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sn8iz-00027U-Gy for emacs-devel@gnu.org; Fri, 06 Jul 2012 09:37:33 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M6Q00J00QUUZN00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Fri, 06 Jul 2012 16:37:31 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M6Q00JAJR6JT040@a-mtaout22.012.net.il>; Fri, 06 Jul 2012 16:37:31 +0300 (IDT) In-reply-to: <87zk7d5c87.fsf@uwakimon.sk.tsukuba.ac.jp> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 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:151451 Archived-At: > From: "Stephen J. Turnbull" > Cc: eggert@cs.ucla.edu, > dmantipov@yandex.ru, > monnier@iro.umontreal.ca, > emacs-devel@gnu.org > Date: Fri, 06 Jul 2012 21:02:32 +0900 > > Eli Zaretskii writes: > > > Not for someone who hacks Emacs sources. [EMACS_INT is] like > > Lisp_Object: you get used to it very quickly and use it naturally > > after that. > > Well, it isn't "like" Lisp_Object; it *is* Lisp_Object! Yes, as long as you don't use USE_LISP_UNION_TYPE (or CHECK_LISP_OBJECT_TYPE in the current development sources), in which case it's not. > > The type name actively resists that. The "ptr" part is one problem, > > the "diff" part is another. None of them is related to the typical > > usage of the positional values. > > Huh? The only way I can understand that is that people who have no > clue about programming in C are programming in C! "No clue" is an exaggeration, IMO. One can program in C without remembering by heart all of its obscure data types. Latest standards add more and more of them. > But I'm not going to be reviewing, most likely. I just wanted to > point out that there is a school of thought opposed to yours. I have no doubt that it exists, just look at the Emacs sources lately ;-)