From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: merlyn@stonehenge.com (Randal L. Schwartz) 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 13:32:19 -0700 Organization: Stonehenge Consulting Services; Portland, Oregon, USA Message-ID: <86wshn3df0.fsf@blue.stonehenge.com> 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 1220819579 25594 80.91.229.12 (7 Sep 2008 20:32:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2008 20:32:59 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 07 22:33:55 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 1KcQxG-0005Ue-IQ for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 22:33:54 +0200 Original-Received: from localhost ([127.0.0.1]:51081 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcQwG-0002xa-OT for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 16:32:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcQwB-0002wt-4t for emacs-devel@gnu.org; Sun, 07 Sep 2008 16:32:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcQw9-0002wJ-W4 for emacs-devel@gnu.org; Sun, 07 Sep 2008 16:32:46 -0400 Original-Received: from [199.232.76.173] (port=39538 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcQw9-0002wG-PD for emacs-devel@gnu.org; Sun, 07 Sep 2008 16:32:45 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:46071 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KcQw9-0002GS-FP for emacs-devel@gnu.org; Sun, 07 Sep 2008 16:32:45 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KcQw6-0002ca-Ge for emacs-devel@gnu.org; Sun, 07 Sep 2008 20:32:42 +0000 Original-Received: from blue.stonehenge.com ([209.223.236.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Sep 2008 20:32:42 +0000 Original-Received: from merlyn by blue.stonehenge.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Sep 2008 20:32:42 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: blue.stonehenge.com x-mayan-date: Long count = 12.19.15.11.14; tzolkin = 11 Ix; haab = 17 Mol User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (berkeley-unix) Cancel-Lock: sha1:njOQ5BBuILsLxZ4XvOIeGrcSy34= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:103646 gmane.emacs.bugs:20313 Archived-At: >>>>> "Stefan" == Stefan Monnier writes: Stefan> I think Calc is plainly wrong is giving higher precedence to the Stefan> multiplication because it's completely non standard. But since I don't Stefan> use Calc much and since it's been that way for a while, I won't fight Stefan> for it. Given the original author's mathematics bias, it made sense (to me, as an early tester and contributor) that: 2 * 3 / 4 * 5 would be parsed as (2 * 3) / (4 * 5) in a mathematical sense. Admittedly, if you're a computer-science guy and not a math guy, this might seem initially odd. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion