bit array

Orgoton orgoton at
Wed Feb 7 07:34:43 PST 2007

When I declare

bit flags[120];

How much memory does this consure? 120 Bytes or 120 bits (packing).
It would be a pain to make something like "long flags1, flags2..." and "if (flags1 & FLAGMASK) ..." to conserve memory.

More information about the Digitalmars-d-learn mailing list