This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC's statement expression extension
- To: Anjul Srivastava <anjul dot srivastava at sanchez dot com>
- Subject: Re: GCC's statement expression extension
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 28 Jul 2000 21:11:12 +0200
- Cc: "'Linus Torvalds'" <torvalds at transmeta dot com>, Marc Espie <espie at quatramaran dot ens dot fr>, gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <383558CE36E2D311AC790004AC33FF67616CD7@OZ>
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