🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3500

Re: Multi-level break and elimination of GOTO

#3500
From: Shaun Flisakowski
Date: Thu, 23 Nov 1995 08:45
17 lines
1280 bytes
>In article <m0tFpAH-000FeXC@eyrie.demon.co.uk> Derek Fawcus <df@eyrie.demon.co.uk> writes:
[snip - possible grammar changes for labeled loops]
>>  Simply,  the optional loop name is _preceeded_ by a colon.  Wouldn't
>>this also remove the ambiguity on the 'do ... while' as the colon comes
>>before the name.  Hopefully,  this wouln't get confused with a normal
>>label as do/while/for/switch are reserved names.

    Couldn't we just put the label in the natural spot, like perl and
    Java, and disallow the label from being the target of both a
    goto and a break/continue.  This seems like it would be pretty
    easy for a compiler to enforce. 

-- 
    Shaun        flisakow@cs.wisc.edu

   "In your heart you know its flat."
                           -Flat Earth Society
Technical Details
Message-ID: <491cb0$7dp@spool.cs.wisc.edu>
Path: arc1-ca.pugleaf.net!fontina.cs.wisc.edu!flisakow
References: <486cj7$o4s@news.mel.aone.net.au> <48bpa2$lmf@news.mel.aone.net.au> <m0tFpAH-000FeXC@eyrie.demon.co.uk> <490b59$3qt@panix.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fontina.cs.wisc.edu!flisakow
From: flisakow@fontina.cs.wisc.edu (Shaun Flisakowski)
Newsgroups: comp.std.c,comp.lang.c
Subject: Re: Multi-level break and elimination of GOTO
Date: 23 Nov 1995 08:45:20 GMT
Organization: U of Wisconsin CS Dept
Message-ID: <491cb0$7dp@spool.cs.wisc.edu>
References: <486cj7$o4s@news.mel.aone.net.au> <48bpa2$lmf@news.mel.aone.net.au> <m0tFpAH-000FeXC@eyrie.demon.co.uk> <490b59$3qt@panix.com>
NNTP-Posting-Host: fontina.cs.wisc.edu