From: Nicolas C. <war...@fr...> - 2003-06-20 04:41:05
|
> > I added the complete documention to Enum. (comments are welcome ) > > While reading the documentation specification, I found a bug. > > Actually the iter2 , fold2 and others were not correct because of the > > following > > > > f (t.next()) (u.next()) > > > > if t.next() was called and then u.next() was raising No_more_elements , we > > were loosing an element of t. > > I think that the iter2 function only makes sense when used on two > enums of the same count. I suggest simply documenting that the > behavior is undefined when used on two enums of differing counts. Not exactly. I can think of some samples which are worth the bugfix. You can do iter2 on two enums, and then want to do "something" with the remaining elements. Nicolas Cannasse |