Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Notional operations Rule 10.1
#8
JonM,

(a) http://c0x.coding-guidelines.com/6.5.html sentence 944

(b) http://c0x.coding-guidelines.com/5.1.2.3.html sentence 212 (ok, this is only an example and so is not normative). The chain of reasoning needed to work this out is rather long, perhaps one day I will write it down.

In the expression u16a + u16b * u32c the operands of the multiply have their types compared and converted appropriately, followed by the operands of the binary plus (because of the way that precedence binds them). Here the order happens to be right to left, but only because of the way that the expression has been written with the multiply on the right.
<r>Applications conformance testing: <URL url="http://www.knosof.co.uk/cbook">http://www.knosof.co.uk/cbook</URL></r>
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)