Re: How to store bit array of arbitrary length

2003-06-15 Thread John W. Krahn
Richard Heintze wrote: > > Presently I'm using an integer to implemement an array > of booleans. > > I suspect this won't work beyond 32 array elements. Is > there a better way to accommodate longer bit arrays? > > Could I use a string, for example, to store an array > of bits? Can I just use th

How to store bit array of arbitrary length

2003-06-15 Thread Richard Heintze
Presently I'm using an integer to implemement an array of booleans. I suspect this won't work beyond 32 array elements. Is there a better way to accommodate longer bit arrays? Could I use a string, for example, to store an array of bits? Can I just use the bit manipulation operators (^= &= |=) on