🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3968

Re: How to eliminate GOTO?

#3968
From: Mark Ingram
Date: Mon, 11 Sep 1995 13:48
16 lines
974 bytes
Zefram (A.Main@dcs.warwick.ac.uk) wrote:
: Magao <magao@rabble.uow.edu.au> wrote:
: >   do search:
: >   {
: >   }
: >   while (...);

: Doesn't work.  That syntax is already legal.  It makes search a label
: for the (beginning of the) compound statement.

But isn't that exactly what we want?
"goto"s will work as they did before,
and "break <label>" will exit the (possibly compound) statement
that has that label?

-- Mark.
Technical Details
Message-ID: <431ems$kje@wormhole.cognos.com>
Path: arc1-ca.pugleaf.net!wormhole.cognos.com!ingramm
References: <41cke4$gtd@sparcserver.lrz-muenchen.de> <42bjpc$lum@yage.tembel.org> <42f8n4$eq1@caip.rutgers.edu> <42o9e3$bj1@wraith.cc.uow.edu.au> <1995Sep9.122254.29810@dcs.warwick.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!wormhole.cognos.com!ingramm
From: ingramm@Cognos.COM (Mark Ingram)
Newsgroups: comp.std.c
Subject: Re: How to eliminate GOTO?
Date: 11 Sep 1995 13:48:12 GMT
Organization: Cognos Incorporated, Ottawa CANADA
Message-ID: <431ems$kje@wormhole.cognos.com>
References: <41cke4$gtd@sparcserver.lrz-muenchen.de> <42bjpc$lum@yage.tembel.org> <42f8n4$eq1@caip.rutgers.edu> <42o9e3$bj1@wraith.cc.uow.edu.au> <1995Sep9.122254.29810@dcs.warwick.ac.uk>
NNTP-Posting-Host: morlock.cognos.com
X-Newsreader: TIN [version 1.2 PL2]