Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ncoast.UUCP Path: utzoo!linus!decvax!cwruecmp!atvax!ncoast!bsa From: bsa@ncoast.UUCP (Brandon Allbery) Newsgroups: net.lang.c Subject: Re: Re: Breaking out of several nested l Message-ID: <450@ncoast.UUCP> Date: Wed, 31-Oct-84 13:48:30 EST Article-I.D.: ncoast.450 Posted: Wed Oct 31 13:48:30 1984 Date-Received: Fri, 2-Nov-84 05:31:40 EST References: <200@dataio.UUCP> <7200001@hpdsa.UUCP> Reply-To: bsa@ncoast.UUCP (Brandon Allbery) Organization: North Coast XENIX, Cleveland Lines: 21 Summary: I STILL think ``structure'' can be overdone. > Article <7200001@hpdsa.UUCP>, from decot@hpdsa.UUCP (decot) +---------------- | If you have several nested loops, put the one you want out of (and everything | within) into a new function, and use "return" to get out. It will probably | be clearer to the reader, too. | | Dave Decot hpda!decot I hate to tell you, but some of us have to program in the real world. I've found that for myself and most people I know, the use of C functions is to mark the ``main'' working components of the program, and using them to ``modularize'' loop bodies can become even more unreadable than totally unstructured programming (you can't easily tell that the function is a loop body). --bsa Brandon Allbery @ North Coast Xenix | the.world!ucbvax!decvax!cwruecmp! 6504 Chestnut Road, Independence, Ohio | {atvax!}ncoast!{tdi1!}bsa (216) 524-1416 \ 44131 | E1439@CSUOHIO.BITNET (friend's acct.) ---------------------------------------+--------------------------------------- Save the 8-bit computer! :-)