🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3964

Re: How to eliminate GOTO?

#3964
From: Zefram
Date: Sat, 09 Sep 1995 12:22
19 lines
1038 bytes
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.  You need to either have
a different syntax for specifying the label (::, anyone?), or put the
label with the while, where (IMHO) it belongs:

do {
  /* ... */
} while search: (...);

That is, of course, consistent with the proposed syntax for labelled
while and for loops.

-zefram
Technical Details
Message-ID: <1995Sep9.122254.29810@dcs.warwick.ac.uk>
Path: arc1-ca.pugleaf.net!news.dcs.warwick.ac.uk!not-for-mail
References: <41cke4$gtd@sparcserver.lrz-muenchen.de> <42bjpc$lum@yage.tembel.org> <42f8n4$eq1@caip.rutgers.edu> <42o9e3$bj1@wraith.cc.uow.edu.au>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!news.dcs.warwick.ac.uk!not-for-mail
From: A.Main@dcs.warwick.ac.uk (Zefram)
Subject: Re: How to eliminate GOTO?
X-Nntp-Posting-Host: stone
Message-ID: <1995Sep9.122254.29810@dcs.warwick.ac.uk>
Sender: news@dcs.warwick.ac.uk (Network News)
Organization: Department of Computer Science, Warwick University, England
References: <41cke4$gtd@sparcserver.lrz-muenchen.de> <42bjpc$lum@yage.tembel.org> <42f8n4$eq1@caip.rutgers.edu> <42o9e3$bj1@wraith.cc.uow.edu.au>
Date: Sat, 9 Sep 1995 12:22:54 GMT