Article View: comp.std.c
Article #3374Re: How to eliminate GOTO?
From: Paul Long
Date: Thu, 24 Aug 1995 17:53
Date: Thu, 24 Aug 1995 17:53
15 lines
1408 bytes
1408 bytes
halasz@caip.rutgers.edu wrote: >If break were alloud to break out of both loops, it would be a most useful >bit of sugar indeed. For the problem with "goto" is its structure-breaking; >the use of "break" assures that control gos to the end of a syntactic >construct: the end of enclozind loop (or *sigh* "switch", but therefore a >from-deeper ending "break" is even more needed). FWIW, PL/I uses the keyword, leave. At some point in its evolution, a number was allowed to follow the keyword that specifies the number of loops to leave, e.g., leave 2. -- Paul Long 45:29:14N 122:48:09W plong@perf.com http://www.teleport.com/~pciwww/ "Wagging head and tail, the red-tailed fish, unsupported, turns around."
Technical Details
Message-ID:
<41iebe$kec@news0.rain.rg.net>Path:
arc1-ca.pugleaf.net!usenet.eel.ufl.edu!pacifier!rainrgnews0!usenetReferences:
<3vn1ht$kj8@martha.utk.edu> <41cke4$gtd@sparcserver.lrz-muenchen.de> <41glno$3a0@caip.rutgers.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!usenet.eel.ufl.edu!pacifier!rainrgnews0!usenet From: Paul Long <plong@perf.com> Newsgroups: comp.std.c,comp.lang.c Subject: Re: How to eliminate GOTO? Date: 24 Aug 1995 17:53:50 GMT Organization: Performance Computing Incorporated Message-ID: <41iebe$kec@news0.rain.rg.net> References: <3vn1ht$kj8@martha.utk.edu> <41cke4$gtd@sparcserver.lrz-muenchen.de> <41glno$3a0@caip.rutgers.edu> NNTP-Posting-Host: yosemite.perf.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.1 sun4c) X-URL: news:41glno$3a0@caip.rutgers.edu