On Tue, Feb 26, 2002 at 09:30:47PM +0200, Martin Vermeer wrote:

...

> > Martin> PS. the 'if' statement at the end of the loop is essential ;-)
> > 
> > Or you could test cur.par().previous(), no?
> > 
> > JMarc
> 
> Perhaps. But this works and is quite legible, don't you think? 
> 
> Martin

Actually no. Remember there is no test at the start of the loop.
If the first value is also the last one, 'next' does not exist 
and you crash before even having a chance to look at 'previous'.

Don't try to be too smart now Jean-Marc ;-)
 
Martin

Attachment: msg33503/pgp00000.pgp
Description: PGP signature

Reply via email to