> >I would like bitfields much more if you could do: > > unsigned bits[1024] : 1; > >Rather than: > > unsigned bit1 : 1; > unsigned bit2 : 1; > unsigned bit3 : 1; > unsigned bit4 : 1; > unsigned bit5 : 1; > >GCC complains on that first one. > > unsigned bits : 1024; > >And GCC complains the width is larger than the specified type there. Howabout something like: struct onebit { unsigned bit0 : 1; } bits[1024]; ;) +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST