On Mon, Jan 30, 2012 at 4:59 PM, Zoltán Kócsi <zol...@bendor.com.au> wrote:
> David Brown <david.br...@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?

If you ask me, yes.

>
> I thought that that idiom was cited as an example for the expressiveness of C
> in the C bible (the K&R book).
>
> Zoltan

Reply via email to