From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.bugs Subject: Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division Date: Sun, 07 Sep 2008 15:46:52 -0400 Message-ID: References: <878wu3j4k2.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220816834 17834 80.91.229.12 (7 Sep 2008 19:47:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2008 19:47:14 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, Francis Litterio , emacs-devel@gnu.org To: jay.p.belanger@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 07 21:48:09 2008 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.50) id 1KcQEy-00044V-VS for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 21:48:09 +0200 Original-Received: from localhost ([127.0.0.1]:59112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcQDz-0001qu-7k for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 15:47:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcQDs-0001po-OC for emacs-devel@gnu.org; Sun, 07 Sep 2008 15:47:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcQDq-0001nw-LB for emacs-devel@gnu.org; Sun, 07 Sep 2008 15:46:59 -0400 Original-Received: from [199.232.76.173] (port=50524 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcQDo-0001lv-1u; Sun, 07 Sep 2008 15:46:56 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:54951 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcQDn-0007Qb-6p; Sun, 07 Sep 2008 15:46:55 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiQFAFTMw0hFxIqP/2dsb2JhbACBZbAOgWaBBw X-IronPort-AV: E=Sophos;i="4.32,352,1217822400"; d="scan'208";a="26486481" Original-Received: from 69-196-138-143.dsl.teksavvy.com (HELO ceviche.home) ([69.196.138.143]) by ironport2-out.teksavvy.com with ESMTP; 07 Sep 2008 15:46:53 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 360A9B4062; Sun, 7 Sep 2008 15:46:52 -0400 (EDT) In-Reply-To: <878wu3j4k2.fsf@gmail.com> (Jay Belanger's message of "Sun, 07 Sep 2008 11:37:01 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:103642 gmane.emacs.bugs:20306 Archived-At: > That's not a bug. While many systems give division a higher precendence > than multiplication, that isn't a universal rule. Actually, I don't know of any system that gives higher precedence to division. The general rule that (AFAIK) all programming languages follow (other than those that don't use infix-with-precedence, such as Lisp and Smalltalk) is that * and / have the same precedence (and are left associative). I think Calc is plainly wrong is giving higher precedence to the multiplication because it's completely non standard. But since I don't use Calc much and since it's been that way for a while, I won't fight for it. Stefan