Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
R4-5-1 Alternative tokens
#1
Rainbow 
Hello,

I have a request for clarification for rule 4-5-1:

Quote:Rule 4–5–1
(Required)
Expressions with type bool shall not be used as operands to built-in operators other than the assignment operator = , the logical operators && , || , ! , the equality operators == and !=, the unary & operator, and the conditional operator.



Rule 4-5-1 and its Rationale do not seem to explicitly forbid the alternative operator representations and, or and not, which, if I understand correctly, are equivalent to the allowed &&, || and !. Rule 2-5-1 explicitly forbids digraphs, but restricts the notion of digraph to the six cases given in its Rationale.

Can I therefore interpret the rule as implicitly allowing and, or and not (and then maybe also not_eq) tokens?
Reply


Messages In This Thread
R4-5-1 Alternative tokens - by ELovisari - 23-09-2021, 10:26 AM
RE: R4-5-1 Alternative tokens - by misra cpp - 08-10-2021, 11:24 AM
RE: R4-5-1 Alternative tokens - by ELovisari - 13-10-2021, 08:29 AM
RE: R4-5-1 Alternative tokens - by misra cpp - 11-01-2022, 10:47 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)