[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: In CVS Emacs, calc-eval gives multiplication higher precidence than
From: |
Stefan Monnier |
Subject: |
Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division |
Date: |
Sun, 07 Sep 2008 15:46:52 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> 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
- In CVS Emacs, calc-eval gives multiplication higher precidence than division, Francis Litterio, 2008/09/07
- Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Jay Belanger, 2008/09/07
- Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Francis Litterio, 2008/09/07
- Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division,
Stefan Monnier <=
- Re: bug#920: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Lennart Borgman (gmail), 2008/09/07
- Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Randal L. Schwartz, 2008/09/07
- Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Lennart Borgman (gmail), 2008/09/07
- Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Randal L. Schwartz, 2008/09/07
- Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Lennart Borgman (gmail), 2008/09/07
- Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Randal L. Schwartz, 2008/09/07
- Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Lennart Borgman (gmail), 2008/09/07
- Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Ulrich Mueller, 2008/09/08
- Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Lennart Borgman (gmail), 2008/09/08
- Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division, Stefan Monnier, 2008/09/07