22-04-2010, 08:06 AM
It is said in rules 12.1 and 12.5 that 12.5 is a special case of 12.1.
However, in rule 12.1, it is stated that no parentheses are required for the operand of a unary operator
while in rule 12.5 it is said that the operands of the logical operators && and || must be primary expressions;
the latter is exemplified in 12.5 with the following example:
if ( x && ( !y ) ) /* make !y primary */
So for rule 12.1, is something like:
if ( x && !y )
...
a violation?
However, in rule 12.1, it is stated that no parentheses are required for the operand of a unary operator
while in rule 12.5 it is said that the operands of the logical operators && and || must be primary expressions;
the latter is exemplified in 12.5 with the following example:
if ( x && ( !y ) ) /* make !y primary */
So for rule 12.1, is something like:
if ( x && !y )
...
a violation?
<t></t>