Re: Regression in 2.2.11

2010-04-05 Thread indent
Indeed your described behaviour is a defined part of C, however I'd say that such a usage falls under the category of 'cleverness' - where most programmers would need to reach for the manual to verify what the result would be and what the intention is. See for example what "Writing Solid Code" - St

Re: Regression in 2.2.11

2010-04-05 Thread Edward Hervey
Hi, This construct is used quite a bit in GStreamer (where we are using indent as a git pre-commit script to make sure all code is indented in a unified fashion). If that construct wasn't allowed, considering the number of esoteric platforms it compiles on... we'd know by now if it wasn't valid

Re: Regression in 2.2.11

2010-04-05 Thread indent
I am very baffled as to why anyone would want to write "return !!a". Are you sure you're writing C and not some other language? On 03/04/10 21:00, Edward Hervey wrote: > Hi, > > I found a regression in indent 2.2.11. > > The following code > a = !!b; > Now becomes > a = ! !b; > > This used