Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site voder.UUCP Path: utzoo!linus!decvax!decwrl!amd!fortune!hpda!hplabs!nsc!voder!gino From: gino@voder.UUCP (Gino Bloch) Newsgroups: net.lang.c Subject: Re: Breaking out of several nested loops (& ANSI C) Message-ID: <468@voder.UUCP> Date: Mon, 15-Oct-84 16:40:56 EDT Article-I.D.: voder.468 Posted: Mon Oct 15 16:40:56 1984 Date-Received: Wed, 17-Oct-84 09:38:00 EDT References: <1801@pegasus.UUCP> Organization: National Semiconductor, Santa Clara Lines: 37 [this is a broken loop] Well, I have an opinion too. I imagine trying to find WHERE the break or goto takes me to. Assume that I have a listing or an editor without the `%' command. I think it's easier to guess what happens with this: while (...) { { { { ... goto bkpt; } } bkpt: ... } } than it will be with this: while (...) { someloop: while (...) { { { ... break someloop; } } } } Except, of course, in simple cases that aren't very deeply nested - but those cases are easy anyway. -- Gene E. Bloch (...!nsc!voder!gino)