archives

« Bugzilla Issues Index

#2957 — 7.4.10 CreateCompoundIterator: Investigate to make CompoundIterator indistinguishable from ListIterator


7.4.8 CreateListIterator (list)
7.4.10 CreateCompoundIterator ( iterator1, iterator2 )


The current set-up makes it possible for user code to detect the difference between CompoundIterator and ListIterator (by calling the `next()` from one iterator on a different iterator).

It should be investigated whether it's possible to hide this implementation detail from user code.


fixed in rev26 editor's draft

these methods are now specified that they will only work on the specific object for which they were defined. They fail fast in that case so so you can't tell from the failure which kind of iterator it was.


fixed in rev26