Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn) Newsgroups: net.lang.c Subject: Re: "break" statements Message-ID: <2746@brl-tgr.ARPA> Date: Sat, 2-Nov-85 18:30:22 EST Article-I.D.: brl-tgr.2746 Posted: Sat Nov 2 18:30:22 1985 Date-Received: Mon, 4-Nov-85 01:46:48 EST References: <678@ucsfcgl.UUCP> <2600026@ccvaxa> Organization: Ballistic Research Lab Lines: 9 > Do you also object (it's EXACTLY the same argument) to having more > than one "return" statement in a function definition? In theory, he should. The objection to break and return from the middle of a block is that there are then multiple exits from the block. This makes it more difficult to establish clean termination conditions and loop invariants for verifying the correctness of the code. Of course, few C programmers worry about this! :-)