Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site rpics.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!rpics!weltyrp
From: weltyrp@rpics.UUCP (Richard Welty)
Newsgroups: net.lang.c
Subject: Re: Re: "break" statements
Message-ID: <205@rpics.UUCP>
Date: Mon, 28-Oct-85 20:50:38 EST
Article-I.D.: rpics.205
Posted: Mon Oct 28 20:50:38 1985
Date-Received: Wed, 30-Oct-85 06:31:55 EST
References: <195@codas.UUCP> <723@mmintl.UUCP>
Distribution: net
Organization: RPI CS Department, Troy  NY
Lines: 28

> 
> In article <195@codas.UUCP> mikel@codas.UUCP (Mikel Manitius) writes:
> >In Ratfor (a pre-processor to fortran (ugh!)) you can specify the level of
> >the break statement, meaning, out of how many loops you want to break,
> >thusly "break 2;" would break out of the current loop, and the one it is
> >nested within, I would on many occasions have liked to have had this feature.
> 
> Better to put some kind of label on the statements being "broken" out of,
> end specify the label in the break statement.  Otherwise, it's too easy
> to miscount -- especially with both loop and switch statements.
> 
> Frank Adams                           ihpn4!philabs!pwa-b!mmintl!franka

as I recall, the Bliss leave statement did exactly that.  In fact, the leave
statement returned a value (bliss is really a expression language, so leave
can return a value), which meant that a control structure could see why it
terminated ...
-- 
				Rich Welty

	"P. D. Q.'s early infancy ended with a striking decision;
	at the age of three, P. D. Q. Bach decided to give up music"
			- Prof. Peter Schickele,
			from "The Definitive Biography of P. D. Q. Bach"

	CSNet:   weltyrp@rpics
	ArpaNet: weltyrp.rpics@csnet-relay
	UUCP:  seismo!rpics!weltyrp