On Mon, Mar 10, 2014 at 7:02 PM, Linus Torvalds
<torva...@linux-foundation.org> wrote:
>
> So please don't sell "bool" as some kind of panacea. It has at least
> as many problems as it has advantages.

Side note: not that bitfields are all that great either, partly
because gcc tends to occasionally generate absolutely disgusting code
for even simple things, and they have the worse-than-average problems
with byte/bit ordering etc. So quite frankly, often "unsigned int
flags" together with manual accesses is the way to go if you care
about code generation quality. Of course, there's the whole
convenience issue..

          Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to