Iterator/size() (was: [Biocorba-l] BSANE and bioCORBA)
Dickson, Mike
mdickson@netgenics.com
Fri, 1 Jun 2001 12:10:10 -0400
The other way to do this is to always permit a reset() but return an
"iterator invalid" exception on a call to the other methods. Essentially,
if someone calls reset they probably won't continue to use the current
iterator as is anyway.
> -----Original Message-----
> From: Martin Senger [mailto:senger@ebi.ac.uk]
> Sent: Friday, June 01, 2001 11:58 AM
> To: Juha Muilu
> Cc: Alan Robinson; biocorba-l@biocorba.org
> Subject: Re: Iterator/size() (was: [Biocorba-l] BSANE and bioCORBA)
>
>
> What about the reset() method in the iterator: should it have
> an exception
> if the iterator cannot be reset (which may be quite common if
> you provide
> a list of objects from some underlying stream), or we just
> document that
> such situation should use CORBA::NO_IMPLEMENT?
>
> Btw, the current other LSR specifications use the latter
> approach, I
> would probably feel cleaner to have there an explicit
> exception. But no
> strong opinion.
>
> Martin
>
> --
> Martin Senger
>
> EMBL Outstation - Hinxton Senger@EBI.ac.uk
> European Bioinformatics Institute Phone: (+44) 1223
> 494636
> Wellcome Trust Genome Campus (Switchboard: 494444)
> Hinxton Fax : (+44) 1223 494468
> Cambridge CB10 1SD
> United Kingdom
> http://industry.ebi.ac.uk/~senger
>
>
> _______________________________________________
> Biocorba-l mailing list
> Biocorba-l@biocorba.org
> http://www.biocorba.org/mailman/listinfo/biocorba-l
>