04-09-2008, 11:36 AM
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.
(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>