Iterators/vectors (was: [Biocorba-l] BSANE and bioCORBA)
Antoine van Gelder
antoine@egenetics.com
01 Jun 2001 13:33:53 +0200
On 01 Jun 2001 07:25:39 -0400, Michael Dickson wrote:
> If I had to change anything about it (and we don't :) I'd replace the
> typesafe iterators with one generic one. Its a small point but the
> other methods generates lots of stubs and skeletons (for languages that
> have them). I generally prefer type safety but in practice this proved
> to be a bit of a pain. So the code you'd likely see would look like:
>
> Object obj;
> while (someIterator.next(&obj)) {
> TypedObj tobj = TypedObjHelper.narrow(obj);
> tobj.dostuff();
> }
*yum*
No more twenty billion YetAnotherIterator_Impl.cpp to clutter up my hard
drive.
- a