logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: a bug in BitSet?: msg#00038

Subject: Re: a bug in BitSet?
> I was writing a test for Extlib's BitSet and encountered a weird case.
> The following does not seem to work as it is supposed to work
> (intersection of a set with the empty set produces a non-empty set).

Looks like all intersect, unite, and friends have serious flaws.
They have been posted on this list by some people, and I added them without
checking. Next time I will ;)
The functions themselves are not designed correctly, I would like to change
them from :

val intersect : t -> t -> unit

to :

val intersect : t -> t -> t

which will produce a new bitset. Sounds more logical to me in Ocaml world.
Any volunteer for implementation ?
Real Life takes quite a lot of my time too ;)

Nicolas Cannasse



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/


<Prev in Thread] Current Thread [Next in Thread>