From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.devel Subject: Re: Type-error in C code Date: Tue, 16 Nov 2010 10:28:40 +0100 Message-ID: <874obhobw7.fsf@keller.adm.naquadah.org> References: <87vd3xog5t.fsf@keller.adm.naquadah.org> <8739r1eizz.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1289899753 8127 80.91.229.12 (16 Nov 2010 09:29:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 16 Nov 2010 09:29:13 +0000 (UTC) Cc: Jan =?utf-8?Q?Dj=C3=A4rv?= , Andreas Schwab , Stefan Monnier , emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 16 10:29:03 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 1PIHqZ-0005Di-0B for ged-emacs-devel@m.gmane.org; Tue, 16 Nov 2010 10:29:03 +0100 Original-Received: from localhost ([127.0.0.1]:58376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIHqY-0002Tm-2Y for ged-emacs-devel@m.gmane.org; Tue, 16 Nov 2010 04:29:02 -0500 Original-Received: from [140.186.70.92] (port=36992 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIHqJ-0002RH-3A for emacs-devel@gnu.org; Tue, 16 Nov 2010 04:28:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIHqH-00037l-6I for emacs-devel@gnu.org; Tue, 16 Nov 2010 04:28:46 -0500 Original-Received: from prometheus.naquadah.org ([212.85.154.174]:54822 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIHqG-00037H-Vb for emacs-devel@gnu.org; Tue, 16 Nov 2010 04:28:45 -0500 Original-Received: by mx1.naquadah.org (Postfix, from userid 8) id BC6285C14E; Tue, 16 Nov 2010 10:28:43 +0100 (CET) Original-Received: from keller.adm.naquadah.org (unknown [IPv6:2a01:e35:2e39:e900:222:faff:fe9d:ce44]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id A46095C14B; Tue, 16 Nov 2010 10:28:41 +0100 (CET) Original-Received: from jd by keller.adm.naquadah.org with local (Exim 4.72) (envelope-from ) id 1PIHqC-0000Y9-JX; Tue, 16 Nov 2010 10:28:40 +0100 Mail-Followup-To: "Stephen J. Turnbull" , Stefan Monnier , Jan =?utf-8?Q?Dj=C3=A4rv?= , Andreas Schwab , emacs-devel@gnu.org In-Reply-To: <8739r1eizz.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Tue, 16 Nov 2010 18:05:20 +0900") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:132698 Archived-At: On Tue, Nov 16 2010, Stephen J. Turnbull wrote: > Finally, note that a default *is* an option. Do you want to force > union type for all builds, or do you want to make it the default and > leave the option to the user to use the (possibly faster) bit-flicking > implementation? Since I don't buy your arguments[1], I think it should NOT be an option, but the implementation itself. OTOH, I only talked about using a struct including the integer, not necessarily the whole union type used by use-union-lisp-type. We already use that kind of type in XCB[2] without any problem. [1] Which were probably true a long time ago, but you will need to prove that it does not compile anywhere and is slow to me in 2010. :) [2] http://xcb.freedesktop.org --=20 Julien Danjou // =E1=90=B0 http://julien.danjou.info