🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3482

Re: Multi-level break and elimination of GOTO

#3482
From: Richard Krehbiel
Date: Mon, 13 Nov 1995 13:27
23 lines
1060 bytes
Lawrence Kirby <fred@genesis.demon.co.uk> wrote:

>Writing it as:

>do outer
>{
>} while ()

>seems to be most consistent with the other constructs.

It does.  Unfortunately it's ambiguous.  Remember, the braces are not
required.

do
    thing;
while (i == 0);

"thing" could be a label and the loop body a null statement, or
"thing;" could be the loop body statement.

--
Richard Krehbiel, Kastle Systems, Arlington VA USA
rich@kastle.com (work) or richk@cais.com (personal)
Technical Details
Message-ID: <1995Nov13.132225.12081@friend.kastle.com>
Path: arc1-ca.pugleaf.net!uu4news.netcom.com!friend!news
References: <43pdut$hoh@galaxy.csc.calpoly.edu> <DF8FE3.97H@news.cern.ch> <47s7l0$r18@news.mel.aone.net.au> <815950407snz@genesis.demon.co.uk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c,comp.lang.c
Path: arc1-ca.pugleaf.net!uu4news.netcom.com!friend!news
From: rich@kastle.com (Richard Krehbiel)
Subject: Re: Multi-level break and elimination of GOTO
Message-ID: <1995Nov13.132225.12081@friend.kastle.com>
Sender: news@friend.kastle.com (News)
Reply-To: rich@kastle.com
Organization: Kastle Development Associates
X-Newsreader: Forte Free Agent 1.0.82
References: <43pdut$hoh@galaxy.csc.calpoly.edu> <DF8FE3.97H@news.cern.ch> <47s7l0$r18@news.mel.aone.net.au> <815950407snz@genesis.demon.co.uk>
Date: Mon, 13 Nov 1995 13:27:43 GMT