emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calc: `*' binds more strongly than `/'


From: Christian Schlauer
Subject: Re: Calc: `*' binds more strongly than `/'
Date: Thu, 26 Apr 2007 23:29:08 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.98 (gnu/linux)

Luc Teirlinck <address@hidden> writes:

> This is actually one of the main reasons that / usually has precedence
> over *:

Luc, I only wanted `/' to be treated equal as `*', not less than `*'
as it is at the moment, but not necessarily more ;-)

> Of course, provoking discussions like this is one of the many
> reasons why the Devil invented infix notation. If you have to use
> it, then the best way to defeat his brilliant but evil scheme is to
> always write explicitly (a*b)/(b*c) or a*(b/c)*d, to leave no doubt
> whatsoever.

,----[ <http://en.wikipedia.org/wiki/Infix_notation> ]
| In infix notation, unlike in prefix or postfix notations,
| parentheses surrounding groups of operands and operators are
| necessary to indicate the intended order in which operations are to
| be performed. *In the absence of parentheses*, certain precedence
| rules determine the order of operations. These are explained in the
| order of operations article.
`----

Christian





reply via email to

[Prev in Thread] Current Thread [Next in Thread]