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: bootstrap problem with union Lisp_Object Date: Tue, 06 Dec 2005 11:20:08 -0500 Message-ID: References: <55DA5764-DDB6-4858-9CE2-065857CDC863@gnu.org> <3AFF0594-F842-4079-9A3B-D1CF7358A281@raeburn.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133886181 22012 80.91.229.2 (6 Dec 2005 16:23:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Dec 2005 16:23:01 +0000 (UTC) Cc: Ken Raeburn , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 06 17:22:51 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EjfYP-0001vy-2h for ged-emacs-devel@m.gmane.org; Tue, 06 Dec 2005 17:20:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EjfYa-00025Q-Ct for ged-emacs-devel@m.gmane.org; Tue, 06 Dec 2005 11:20:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EjfYQ-00025J-2N for emacs-devel@gnu.org; Tue, 06 Dec 2005 11:20:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EjfYL-000252-7d for emacs-devel@gnu.org; Tue, 06 Dec 2005 11:20:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EjfYL-00024z-42 for emacs-devel@gnu.org; Tue, 06 Dec 2005 11:20:29 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EjfZ1-0000ov-FD for emacs-devel@gnu.org; Tue, 06 Dec 2005 11:21:11 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 903F92CF6D9; Tue, 6 Dec 2005 11:20:13 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id E6A5A4AC010; Tue, 6 Dec 2005 11:20:08 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id CC345F69C4; Tue, 6 Dec 2005 11:20:08 -0500 (EST) Original-To: Andreas Schwab In-Reply-To: (Andreas Schwab's message of "Tue, 06 Dec 2005 16:52:47 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.852, requis 5, autolearn=not spam, AWL 0.05, BAYES_00 -4.90) X-MailScanner-From: monnier@iro.umontreal.ca 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:47049 Archived-At: >> The argument of *any* macro should be free of side effects. > Not necessarily. Like everything, there are exceptions, of course. But then people who come and want to change the macro suffer. I know because I've added an `eassert (INTEGERP (x))' to the XINT macro (as you may have noticed by looking at some of the commits I've done a while back). So please, just move side effects out of macro arguments, even if they don't hurt with the current definition of the macro. > Making macros safe on side effects is usually not hard, Try it with asserts (and without GCC extensions, of course). Stefan