Thread overview
operator precedence
Apr 10, 2010
strtr
Apr 10, 2010
bearophile
April 10, 2010
Are D's operator precedence rules the same as C's?

http://www.difranco.net/cop2220/op-prec.htm

Couldn't find such a table on the D website.
April 10, 2010
strtr Wrote:

> Are D's operator precedence rules the same as C's?

http://www.digitalmars.com/d/1.0/overview.html
Compatibility
Operator precedence and evaluation rules

D retains C operators and their precedence rules, order of evaluation rules, and promotion rules. This avoids subtle bugs that might arise from being so used to the way C does things that one has a great deal of trouble finding bugs due to different semantics.

But there are new operators, like ^^

Bye,
bearophile
April 12, 2010
On Sat, 10 Apr 2010 01:56:32 -0400, strtr <strtr@spam.com> wrote:

> Are D's operator precedence rules the same as C's?
>
> http://www.difranco.net/cop2220/op-prec.htm
>
> Couldn't find such a table on the D website.

I had the same issue early on.

The operator precedence is embedded in the grammar.  Hopefully TDPL will contain a table.

-Steve