operator precedence

bearophile bearophileHUGS at lycos.com
Sat Apr 10 03:22:08 PDT 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


More information about the Digitalmars-d-learn mailing list