GCC's statement expression extension
Gabriel Dos Reis
gdr@codesourcery.com
Fri Jul 28 12:11:00 GMT 2000
Anjul Srivastava <anjul.srivastava@sanchez.com> writes:
| It does not have undefined behavior, and will always evaluate to: three plus
| twice the old value of i.
This is getting a bit off-topic: you can't modify more than once an
objet without intervening sequence point and expect a defined
behavior.
But that has nothing to do with the unnecessary headache
statement-expressions are causing when it come to implement standard
functionalities and optimizations. It is just a distraction brought
in in order to hide the main issue. Let's not go that road.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc
mailing list