List all of the assignment operators explicitly, for those who have been
traumatized by perl.
This commit is contained in:
parent
84860c33f0
commit
f5732aa783
@ -40,7 +40,7 @@
|
||||
.Nd C operator precedence and order of evaluation
|
||||
.Sh DESCRIPTION
|
||||
.Bd -ragged -offset indent -compact
|
||||
.Bl -column "! ~ ++ -- - (type) * & sizeof"
|
||||
.Bl -column "\&= += -= *= /= %= <<= >>= &= ^= |="
|
||||
.It Sy "Operator Associativity"
|
||||
.It "-------- -------------"
|
||||
.It "\&() [] -> . left to right"
|
||||
@ -56,7 +56,7 @@
|
||||
.It "\&&& left to right"
|
||||
.It "\&|| left to right"
|
||||
.It "\&?: right to left"
|
||||
.It "\&= += -= etc. right to left"
|
||||
.It "\&= += -= *= /= %= <<= >>= &= ^= |= right to left"
|
||||
.It "\&, left to right"
|
||||
.El
|
||||
.Ed
|
||||
|
@ -1,17 +1,19 @@
|
||||
Operator Associativity
|
||||
-----------------------------------------------
|
||||
() [] -> . left to right
|
||||
! ~ ++ -- - (type) * & sizeof right to left
|
||||
* / % left to right
|
||||
+ - left to right
|
||||
<< >> left to right
|
||||
< <= > >= left to right
|
||||
== != left to right
|
||||
& left to right
|
||||
^ left to right
|
||||
| left to right
|
||||
&& left to right
|
||||
|| left to right
|
||||
?: right to left
|
||||
= += -= etc. right to left
|
||||
, left to right
|
||||
Operator Associativity
|
||||
-----------------------------------------------------
|
||||
() [] -> . left to right
|
||||
! ~ ++ -- - (type) * & sizeof right to left
|
||||
* / % left to right
|
||||
+ - left to right
|
||||
<< >> left to right
|
||||
< <= > >= left to right
|
||||
== != left to right
|
||||
& left to right
|
||||
^ left to right
|
||||
| left to right
|
||||
&& left to right
|
||||
|| left to right
|
||||
?: right to left
|
||||
= += -= *= /= %= <<= >>= &= ^= |= right to left
|
||||
, left to right
|
||||
|
||||
$FreeBSD$
|
||||
|
Loading…
Reference in New Issue
Block a user