Simple operator precidence chart (and associativity)?

Stewart Gordon smjg_1998 at yahoo.com
Wed Mar 14 12:09:00 PDT 2012


On 13/03/2012 23:14, Timon Gehr wrote:
<snip>
>> (Also, for
>> associativity: Assign and OpAssign are right-associative and everything else
>> is left-associative, correct?)
>>
>>
>
> Power is right-associative too.

You forgot the conditional operator.

And the relational operators are non-associative (a == b == c or similar is illegal).

Stewart.


More information about the Digitalmars-d-learn mailing list