|
The only reason i ever use the never ending loop is in my screen programs. for this purpose, I find it rather handy and very easy to code and read. psuedo code below: dow 1 = 1 exfmt fmt01 select when *inkc exsr endpgm when *inkl leave when *inkd exsr prompt iter other exsr edit if not errors exsr update leave end endsl enddo changing the dow to... dou *inkc or *inkl or updated ...just never appealed to me. FWIW, i use a priming a read and dow for file processing. On 8/22/05, Joel Fritz <JFritz@xxxxxxxxxxxxxxxx> wrote: > > I'm very late on this one, but I could never understand the intentional > infinite loop with the exit point(s) defined inside. It's another part > of the Brotherhood of the Priming Read doctrine--try always to have just > one exit point for a loop, defined in the loop control statement.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.