Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #101646

Re: while loop vs do while loop reading from the file issue

Path csiph.com!feeder.erje.net!2.eu.feeder.erje.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date Fri, 13 Jan 2017 12:48:31 -0600
From Gareth Owen <gwowen@gmail.com>
Newsgroups comp.lang.c
Subject Re: while loop vs do while loop reading from the file issue
References <52f1c174-6af1-4fda-9ff8-a5e2cf507b5f@googlegroups.com> <o2repr$uqa$1@dont-email.me> <87poku5ism.fsf@bsb.me.uk> <o2sfa2$nk5$1@dont-email.me> <e9c94e27-fe02-47b7-a5f0-9918629dfd48@googlegroups.com> <o2tnkp$uf1$1@dont-email.me> <b3e99481-11dd-4c1c-a902-c3801aa173e4@googlegroups.com> <8760ml5v5k.fsf@bsb.me.uk> <37e325fb-4aa8-4c84-9bcd-c1aa790fadc7@googlegroups.com> <87zijw3cfs.fsf@bsb.me.uk> <e67e45a0-8f62-4d17-9719-f3e6275a089c@googlegroups.com> <lnzijvkbz5.fsf@kst-u.example.com> <10e036fc-93fb-4d99-ba8f-1bbd16448b8c@googlegroups.com> <lneg17k44t.fsf@kst-u.example.com> <74cef61a-e3aa-4162-a9c7-22a89af0ce46@googlegroups.com> <58591225.764390@news.xs4all.nl> <428e33b4-36db-47f6-95a8-b86e9cba819a@googlegroups.com> <kfneg0qwlfs.fsf@x-alumni2.alumni.caltech.edu> <b9478ce8-5425-4524-b8d3-a0dd5cd414f3@googlegroups.com> <kfnfuknqm25.fsf@x-alumni2.alumni.caltech.edu> <ddde21e7-7b6e-41aa-baca-340dad0aced4@googlegroups.com>
Date Fri, 13 Jan 2017 18:48:30 +0000
Message-ID <874m12aj9d.fsf@gmail.com> (permalink)
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Cancel-Lock sha1:TK08BHYxttP1nhAN10RW2w+NNrE=
MIME-Version 1.0
Content-Type text/plain
Lines 14
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-abi4Q2Ahwi1idMo+WH4sgdesdGpqfEtZIqbkcDXiNgyPGSBmK2LsNSsI4hLGsSxcGn2gK/8xwb+plhJ!eLwxigA4MTmDpj3jluNo2132Oi8a7ZMgNAFipqK+MF32bFevkeFgUhBYhrqqeZbQWIJL6A==
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2537
Xref csiph.com comp.lang.c:101646

Show key headers only | View raw


Malcolm McLean <malcolm.mclean5@btinternet.com> writes:

> But loop and a half is your invention. It's your contribution to our
> understanding of what structured programming should be.

Here's someone in 1998 discussing loop-and-a-half, and its clear from
context they consider it a well-known idiom
https://users.cs.duke.edu/~ola/patterns/plopd/loops.html#loop-and-a-half

If Tim did invent it, he did so a long time ago, and it really caught on.

Of course, Tim's depth of knowledge of experience does suggest that he's
been programming since the time that punch cards were made of papyrus,
so its not out of the question.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: while loop vs do while loop reading from the file issue Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-29 13:25 -0800
  Re: while loop vs do while loop reading from the file issue Ian Collins <ian-news@hotmail.com> - 2016-12-30 10:48 +1300
    Re: while loop vs do while loop reading from the file issue Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-29 16:46 -0800
      Re: while loop vs do while loop reading from the file issue Ian Collins <ian-news@hotmail.com> - 2016-12-30 13:51 +1300
        Re: while loop vs do while loop reading from the file issue Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-29 17:22 -0800
          Re: while loop vs do while loop reading from the file issue Tim Rentsch <txr@alumni.caltech.edu> - 2017-01-13 02:45 -0800
      Re: while loop vs do while loop reading from the file issue BartC <bc@freeuk.com> - 2016-12-30 01:01 +0000
        Re: while loop vs do while loop reading from the file issue Ian Collins <ian-news@hotmail.com> - 2016-12-30 14:04 +1300
        Re: while loop vs do while loop reading from the file issue Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-29 17:23 -0800
  Re: while loop vs do while loop reading from the file issue asetofsymbols@gmail.com - 2016-12-30 00:56 -0800
  Re: while loop vs do while loop reading from the file issue Tim Rentsch <txr@alumni.caltech.edu> - 2017-01-13 02:41 -0800
    Re: while loop vs do while loop reading from the file issue Malcolm McLean <malcolm.mclean5@btinternet.com> - 2017-01-13 09:59 -0800
      Re: while loop vs do while loop reading from the file issue Gareth Owen <gwowen@gmail.com> - 2017-01-13 18:48 +0000
        Re: while loop vs do while loop reading from the file issue Tim Rentsch <txr@alumni.caltech.edu> - 2017-01-15 12:08 -0800
          Re: while loop vs do while loop reading from the file issue Gareth Owen <gwowen@gmail.com> - 2017-01-15 23:09 +0000
            Re: while loop vs do while loop reading from the file issue Richard Heathfield <rjh@cpax.org.uk> - 2017-01-15 23:18 +0000
              Re: while loop vs do while loop reading from the file issue Gareth Owen <gwowen@gmail.com> - 2017-01-15 23:37 +0000
              Re: while loop vs do while loop reading from the file issue raltbos@xs4all.nl (Richard Bos) - 2017-01-18 11:32 +0000
                Re: while loop vs do while loop reading from the file issue Gareth Owen <gwowen@gmail.com> - 2017-01-18 21:25 +0000
      Re: while loop vs do while loop reading from the file issue Keith Thompson <kst-u@mib.org> - 2017-01-13 11:54 -0800
      Re: while loop vs do while loop reading from the file issue Tim Rentsch <txr@alumni.caltech.edu> - 2017-01-15 11:58 -0800

csiph-web