Iterator/size() (was: [Biocorba-l] BSANE and bioCORBA)

Juha Muilu muilu@ebi.ac.uk
Sat, 02 Jun 2001 22:53:22 +0100


"Dickson, Mike" wrote:
> 
> 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.

I agree with this. So my vote is not to have exception on the reset() call

> 
> > -----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
> >

-- 
 +--------------------------------------------------------------------+
 |Juha Muilu, Ph.D., EMBL Outstation| Email:  muilu@ebi.ac.uk         |
 |European Bioinformatics Institute | Phone:  +44 (0)1223 494 624     |
 |Wellcome Trust Genome Campus      | Fax:    +44 (0)1223 494 468     |
 |Hinxton, Cambridge CB10 1SD, UK   | http://industry.ebi.ac.uk/~muilu|
 +--------------------------------------------------------------------+