Assignment to volatile objects
Zoltán Kócsi
zoltan@bendor.com.au
Tue Jan 31 01:32:00 GMT 2012
David Brown <david.brown@hesbynett.no> wrote:
> Until gcc gets a feature allowing it to whack the programmer on the back
> of the head with Knuth's "The Art of Computer Programming" for writing
> such stupid code that relies on the behaviour of volatile "a = b = 0;",
> then a warning seems like a good idea.
a = b = 0; might be stupid.
Is if ( ( a = expr ) ); is also stupid?
I thought that that idiom was cited as an example for the expressiveness of C
in the C bible (the K&R book).
Zoltan
More information about the Gcc
mailing list