Article View: comp.std.c
Article #3975Re: Situation indicators (long) (was: How to eliminate GOTO?)
From: Zefram
Date: Tue, 12 Sep 1995 17:14
Date: Tue, 12 Sep 1995 17:14
10 lines
999 bytes
999 bytes
When used with a loop construct, the situation identifier is just a break. The (already suggested) syntax that would attach an optional label to each loop, and allow break and continue to use that label, would be more general (because continue works), and wouldn't complicate the grammar nearly as much. When used with an arbitrary statement, the situation identifier merely acts as a goto to the end of the statement, which I think is sufficiently rarely used that another syntax for it would not be useful. -zefram
Technical Details
Message-ID:
<1995Sep12.171404.21373@dcs.warwick.ac.uk>Path:
arc1-ca.pugleaf.net!news.dcs.warwick.ac.uk!not-for-mailReferences:
<4321kd$cne@news0.rain.rg.net>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: Situation indicators (long) (was: How to eliminate GOTO?) X-Nntp-Posting-Host: stone Message-ID: <1995Sep12.171404.21373@dcs.warwick.ac.uk> Sender: news@dcs.warwick.ac.uk (Network News) Organization: Department of Computer Science, Warwick University, England References: <4321kd$cne@news0.rain.rg.net> Date: Tue, 12 Sep 1995 17:14:04 GMT