[ros-dev] [ros-diffs] [dgorbachev] 39422: Fix bug #4129 in CmpGetNameControlBlock().
Ged
gedmurphy at gmail.com
Tue Feb 17 09:01:04 CET 2009
James Hawkins wrote:
> The parentheses are not needed? You better check your C book for
> operator precedence. && has higher precedence than ||, so in this
> case the parentheses are needed. This is also why using parentheses
> is a good idea, because you never know if the original author has any
> idea about operator precedence. The use of parentheses makes the
> original intention clear to other authors.
An absolutely perfect example which nicely backs up my original argument.
I feel I now have nothing more to add. :)
Ged.
More information about the Ros-dev
mailing list