From: Nicolas C. <war...@fr...> - 2004-12-19 10:43:19
|
> 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 |