Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 19.12 (# and ## operator) real issue?
#3
I agree with the statement:
Quote:result can depend o[n] the order of evaluation which is unspecifed

... when both the # and the ## operator are in the same macro. However, can someone provide an example when only one of the operators (only #, or only ##) are used more than once in a single macro definition?

My recommendation is to use the following wording:
Quote:Rule 19.12 (req): The # and ## operators shall not be used together in the same macro definition.

Can someone comment on why the original wording would be preferred to this alternative? My second example doesn't have any issues with operator evaluation order that I can identify, yet it violates the original wording. With the updated wording, it would be okay, while the first example is still a violation -- as it should be, since it does have an issue with order of evaluation.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)