From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Calc: `*' binds more strongly than `/' Date: Wed, 20 Jun 2007 12:29:16 -0500 (CDT) Message-ID: <200706201729.l5KHTG24023360@jane.dms.auburn.edu> References: <87y7kvxj6p.fsf@arcor.de> <87odlrkn74.fsf@truman.edu> <87tzvhcul9.fsf@stupidchicken.com> <863b2z2mma.fsf@blue.stonehenge.com> <55350.128.165.123.18.1176926533.squirrel@webmail.lanl.gov> <86ps5zuwmi.fsf@blue.stonehenge.com> <87ps5zi1h2.fsf@truman.edu> <87abuu8xaz.fsf@gmail.com> <877ipy8vhd.fsf@kfs-lx.testafd.dk> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1182360828 23500 80.91.229.12 (20 Jun 2007 17:33:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2007 17:33:48 +0000 (UTC) Cc: jay.p.belanger@gmail.com, emacs-devel@gnu.org To: storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 20 19:33:46 2007 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 1I143s-0007cN-3z for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2007 19:33:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I143r-0004l2-Ft for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2007 13:33:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I143p-0004kq-8o for emacs-devel@gnu.org; Wed, 20 Jun 2007 13:33:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I143o-0004kQ-M4 for emacs-devel@gnu.org; Wed, 20 Jun 2007 13:33:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I143o-0004kK-ID for emacs-devel@gnu.org; Wed, 20 Jun 2007 13:33:40 -0400 Original-Received: from manatee.dms.auburn.edu ([131.204.53.104]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1I143o-0008QN-71 for emacs-devel@gnu.org; Wed, 20 Jun 2007 13:33:40 -0400 Original-Received: from jane.dms.auburn.edu (jane.dms.auburn.edu [131.204.53.201]) by manatee.dms.auburn.edu (8.13.7+Sun/8.13.7) with ESMTP id l5KHX8Ig017511; Wed, 20 Jun 2007 12:33:08 -0500 (CDT) Original-Received: from jane.dms.auburn.edu (localhost [127.0.0.1]) by jane.dms.auburn.edu (8.13.4+Sun/8.13.4) with ESMTP id l5KHTHWo023363; Wed, 20 Jun 2007 12:29:17 -0500 (CDT) Original-Received: (from teirllm@localhost) by jane.dms.auburn.edu (8.13.4+Sun/8.13.3/Submit) id l5KHTG24023360; Wed, 20 Jun 2007 12:29:16 -0500 (CDT) X-Authentication-Warning: jane.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f In-reply-to: <877ipy8vhd.fsf@kfs-lx.testafd.dk> (storm@cua.dk) X-detected-kernel: Solaris 10 (beta) 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:73451 Archived-At: Kim Storm wrote: IIRC, the objection was that people expected equal precedence with left to right evaluation (as in C). Giving / precedence over * doesn't fix that - it just gives another "wrong" result. and Jay Belanger wrote: At any rate, setting calc-multiplication-has-precedence to nil should probably give equal precedence for aesthetic reasons; that's a trivial fix that I'll make this afternoon. I guess I must be missing something obvious, but given left-associativity, can you give me any example where giving / precedence over * gives a different result than giving them equal precedence (as opposed to merely using a different algorithm to compute the same result, in which case I would guess that only the relative speed of the two algorithms would matter). Sincerely, Luc.