From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jim Ottaway Newsgroups: gmane.emacs.devel Subject: Re: puzzling byte-compile-file message: `=' called for effect Date: Tue, 15 Nov 2005 17:12:46 +0000 Message-ID: <87ek5hltrl.fsf@lse.ac.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1132074988 10747 80.91.229.2 (15 Nov 2005 17:16:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 Nov 2005 17:16:28 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 15 18:16:27 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ec4Mn-0000a3-AF for ged-emacs-devel@m.gmane.org; Tue, 15 Nov 2005 18:13:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ec4Mm-0008RF-Kp for ged-emacs-devel@m.gmane.org; Tue, 15 Nov 2005 12:13:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ec4MZ-0008P9-MA for emacs-devel@gnu.org; Tue, 15 Nov 2005 12:12:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ec4MY-0008OH-NR for emacs-devel@gnu.org; Tue, 15 Nov 2005 12:12:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ec4MY-0008O8-J1 for emacs-devel@gnu.org; Tue, 15 Nov 2005 12:12:54 -0500 Original-Received: from [194.247.47.231] (helo=mailout.zetnet.co.uk) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Ec4MY-0000Ij-Bl for emacs-devel@gnu.org; Tue, 15 Nov 2005 12:12:54 -0500 Original-Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.50) id 1Ec4MW-0006bt-N7 for emacs-devel@gnu.org; Tue, 15 Nov 2005 17:12:52 +0000 Original-Received: from runcible (53-186.adsl.zetnet.co.uk [194.247.53.186]) by zetnet.co.uk (8.13.4/8.13.4/Debian-3) with ESMTP id jAFHCpba005851 for ; Tue, 15 Nov 2005 17:12:52 GMT Original-Received: from jeho by runcible with local (Exim 4.50) id 1Ec4MR-00059A-0C for emacs-devel@gnu.org; Tue, 15 Nov 2005 17:12:47 +0000 Original-To: Emacs-Devel User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:46025 Archived-At: --=-=-= Sorry, I meant to cc this to the emacs-devel list, but forgot to add the header. --=-=-= Content-Type: message/rfc822 Content-Disposition: inline X-From-Line: nobody Tue Nov 15 17:09:36 2005 To: help-gnu-emacs@gnu.org Subject: Re: puzzling byte-compile-file message: `=' called for effect X-Draft-From: ("gnu.emacs.help" 132414) References: From: Jim Ottaway Cc: Date: Tue, 15 Nov 2005 17:09:35 +0000 In-Reply-To: (Drew Adams's message of "Tue, 15 Nov 2005 08:39:13 -0800") Message-ID: <87lkzpltww.fsf@lse.ac.uk> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Lines: 33 Xref: runcible sent-mail:1240 MIME-Version: 1.0 >>>>> Drew Adams writes: > The term "for effect" is correct here, but I don't think it is as clear as > it could be. The compiler is suggesting that, if the `=' expression is > useful, it must be useful because of side effects that occur during its > evaluation. > I think the compiler should explicitly say that the resulting _value_ of the > `=' expression is not used. It might also say that the `=' expression may be > useful for its side effects (or side effects of its subexpressions), but the > resulting value has no effect on the overall code. At a minimum, the word > "side" should be added to "effect". Yes, I agree. I was so puzzled by the elliptical message that I missed the obvious error in my code. > The message might better say: > "Warning: `=' return value ignored. Is the expression useful > for its side effects?" Something like that, I agree, even simply "`=' called for side effect alone". > Ccing emacs-devel, as I think the message should be clarified > somehow. Me too. Regards, -- Jim Ottaway --=-=-= -- Jim Ottaway --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--