Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!munnari.oz.au!murtoa.cs.mu.oz.au!ditmela!yarra!bohra!ejp From: ejp@bohra.cpg.oz (Esmond Pitt) Newsgroups: comp.lang.c Subject: Re: do...while vs. repeat...until (was: Errors aren't that simple) Message-ID: <383@bohra.cpg.oz> Date: 19 Mar 90 08:05:07 GMT References: <16188@haddock.ima.isc.com> <9130009@hpavla.AVO.HP.COM> Reply-To: ejp@bohra.cpg.oz.au (Esmond Pitt) Organization: Computer Power Group, Melb, Australia Lines: 17 In article peter@ficc.uu.net (Peter da Silva) writes: >The only sense in which repeat...until is more natural than do...while is etc etc. There is a further significant difference between the Pascal repeat..until and the 'C' do..while. In Pascal, 'repeat..until' delimits a statement-list, not a single statement as in 'C'. Otherwise you would have to begin a multi-statement 'repeat..until' with 'repeat begin', and end it with 'end until'. There is no formal need for such redundancy. -- Esmond Pitt, Computer Power Group ejp@bohra.cpg.oz