Pierre Habouzit <madcoder@xxxxxxxxxx> writes: [bit fields] > Really, I feel this is a big lack, for a language that aims at > simplicity, conciseness _and_ correctness. > > OK, maybe I'm biased, I work with networks protocols all day long, so > I often need bitfields, but still, a lot of people deal with network > protocols, it's not a niche. And strictly speaking, C bitfields are completely useless for that purpose since the compiler is free to use whatever method he wants for allocating bit fields. So if you want to write a portable program, you are back to making the masks yourself. Where bit fields work reliably is when you are not interchanging data with other applications, but just laying out your internals. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html