🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2109

Re: use of the break statement

#2109
From: Larry Weiss
Date: Thu, 29 Feb 1996 04:33
14 lines
1062 bytes
Bill Winn wrote:
>  > In article <4gnbcp$biq@solutions.solon.com>, news@dcs.warwick.ac.uk
 > composed...
 > > break is very commonly used to exit a loop...
 > > I don't consider it to be in any way bad style.
  
 > break is *never* the only way that a loop can stop executing.  There is
 > *always* one or more conditions attached to the execution of the break, and
 > those conditions may server, just as easily, to set the flag described
 > above.


Do you have an example of some C code where you had the option of
using a break, but decided not to?
Technical Details
Message-ID: <4h3aak$47e@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4gfcl7$2ls@solutions.solon.com> <4gnbcp$biq@solutions.solon.com> <4h2s54$o3@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: Larry Weiss <lfw@iadfw.net>
Newsgroups: comp.lang.c.moderated
Subject: Re: use of the break statement
Date: 28 Feb 1996 22:33:24 -0600
Organization: ...
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4h3aak$47e@solutions.solon.com>
References: <4gfcl7$2ls@solutions.solon.com> <4gnbcp$biq@solutions.solon.com> <4h2s54$o3@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
X-Mailer: Mozilla 2.0 (Win16; I)