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: In CVS Emacs, calc-eval gives multiplication higher precidence than division Date: Sun, 07 Sep 2008 23:47:12 -0400 Message-ID: References: <878wu3j4k2.fsf@gmail.com> <86wshn3df0.fsf@blue.stonehenge.com> <48C43ADA.1070001@gmail.com> <86sksb3d53.fsf@blue.stonehenge.com> <48C43CB7.4060505@gmail.com> <86y7231ltv.fsf@blue.stonehenge.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220845649 15897 80.91.229.12 (8 Sep 2008 03:47:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Sep 2008 03:47:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: merlyn@stonehenge.com (Randal L. Schwartz) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 08 05:48:24 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 1KcXjj-0006E2-Md for ged-emacs-devel@m.gmane.org; Mon, 08 Sep 2008 05:48:23 +0200 Original-Received: from localhost ([127.0.0.1]:33124 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcXij-0004jc-OR for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 23:47:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcXie-0004jN-S7 for emacs-devel@gnu.org; Sun, 07 Sep 2008 23:47:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcXic-0004jB-DV for emacs-devel@gnu.org; Sun, 07 Sep 2008 23:47:15 -0400 Original-Received: from [199.232.76.173] (port=39920 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcXic-0004j8-86 for emacs-devel@gnu.org; Sun, 07 Sep 2008 23:47:14 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:48358) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcXic-0004vm-4j for emacs-devel@gnu.org; Sun, 07 Sep 2008 23:47:14 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvAEANE8xEhFxIqP/2dsb2JhbACBZa98gWaBBw X-IronPort-AV: E=Sophos;i="4.32,355,1217822400"; d="scan'208";a="26497383" Original-Received: from 69-196-138-143.dsl.teksavvy.com (HELO pastel.home) ([69.196.138.143]) by ironport2-out.teksavvy.com with ESMTP; 07 Sep 2008 23:47:13 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 3890D7FDB; Sun, 7 Sep 2008 23:47:12 -0400 (EDT) In-Reply-To: <86y7231ltv.fsf@blue.stonehenge.com> (Randal L. Schwartz's message of "Sun, 07 Sep 2008 18:13:32 -0700") 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:103666 Archived-At: > If a is 2, and c is 5, you're actually telling me that *you* > would parse: > 2 b / 5 d > as ((2 * b) / 5) * d ? > That's crazy. > That's (2b)/(5d), according to any math teacher I knew from school. > That's the only sane parsing of that. > Now, replace 2 with "a" and 5 with "c", and you get: > ab/cd > which is (ab)/(cd). Again "a b" is not the same as "a * b", and "ab" is even a lot more different (given the lack of even a space, it's hard to argue that there could be something that binds more tightly). So this argument is irrelevant. I.e. I agree if Calc gives higher precedence to the implicit multiplication operator, but not if it does so to the "*" multiplication operator. Stefan