🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3491

Re: Multi-level break and elimination of GOTO

#3491
From: Andrew Dunbar
Date: Tue, 14 Nov 1995 00:45
28 lines
1701 bytes
Greg Comeau (comeau@panix.com) wrote:
: In article <DHpCK1.HyG@kroete2.freinet.de> ehcorry@inet.uni-c.dk (Erik Corry) writes:
: >: Andrew Dunbar (andrewd@agnus.livewire.com.au) wrote:
: >: : for outer (x = 0; x < MAXX; x++)
: >: :     ...
: >: :          break (outer);
: >
: 
: Assuming this proposal could ever actually gain momentum, I wouldn't
: be for the ()'s on the break, but would never reject it for parsing 
: problems.  In fact, I think the parsing would be ok  and not the problem
: you mention.

Oh the ()'s on the break were just a coding style - I should have left
them out. I sometimes put ()'s on a return statement too.
: 
: The real problem I have with this proposal is that it only considers `for'
: (and probably `while').  If to be stronger, it could be more general than
: just those, plus consider appropriateness of special cases.
: Even with that though, no doubt we still wouldn't see it fly...
: 
I intended them to be used in any construct where a break would apply:
do, for, switch, while

Somebody mentioned 'if' but I couldn't see a use for it.

Andrew Dunbar
GPSoftware
Technical Details
Message-ID: <488orf$bfb@news.mel.aone.net.au>
Path: arc1-ca.pugleaf.net!news.mel.aone.net.au!not-for-mail
References: <DF8FE3.97H@news.cern.ch> <rnbohuqj8p3.fsf@euax7i3c01.eua.ericsson.se> <DHpCK1.HyG@kroete2.freinet.de> <480oqa$l1j@panix.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.mel.aone.net.au!not-for-mail
From: andrewd@agnus.livewire.com.au (Andrew Dunbar)
Newsgroups: comp.std.c,comp.lang.c
Subject: Re: Multi-level break and elimination of GOTO
Followup-To: comp.std.c,comp.lang.c
Date: 14 Nov 1995 00:45:35 GMT
Organization: Livewire Communications
Message-ID: <488orf$bfb@news.mel.aone.net.au>
References: <DF8FE3.97H@news.cern.ch> <rnbohuqj8p3.fsf@euax7i3c01.eua.ericsson.se> <DHpCK1.HyG@kroete2.freinet.de> <480oqa$l1j@panix.com>
NNTP-Posting-Host: agnus.livewire.com.au
X-Newsreader: TIN [UNIX 1.3 950515BETA PL0]