This is the mail archive of the mauve-discuss@sources.redhat.com mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: BitSet.[x]or does (not) grow BitSet


Tom Tromey writes:
 > >>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:
 > 
 > Mark> Although the API documentation is not very clear I am inclined
 > Mark> to go with the assumption that the BitSet does not grow.
 > 
 > I agree.  I would be surprised by an implementation that grows the
 > argument bitset.

It would indeed.

However, [x]or is commutative, so 

   b.or(a)  =  a.or(b)

To maintain commutativity, you have to either grow or shrink the
resulting bitset.  

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]