[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Vnode scope implementation
On Sat, 4 Jul 2009 23:24:53 +0100
David Laight <david%l8s.co.uk@localhost> wrote:
> IMHO using (1 << n) is enough to say 'these might be or'ed together.
> Even a sequence of hex constants will be an obvious bit pattern list.
I agree that C bit operators are obvious enough, although that may be a
per-project style preference issue. With the bit operators, noone has
to look at whatever the macro may expand to, especially that every
project might define its unstandard wrapper... Moreover, the macros
aren't necessarily shorter or more readable, and they result in less
portable code. It seems that KNF doesn't have a suggestion about it
But I don't have a strong opinion about this.
Main Index |
Thread Index |