From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,8be18979db11f51c X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,fb631c9316319fef X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-02-28 06:37:26 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!sunqbc.risq.qc.ca!news-hog.berkeley.edu!ucberkeley!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!gazette.loc1.tandem.com!not-for-mail Message-ID: <3A9CC5DF.4A94AD04@hiyall.zko.dec.com> From: John Reagan Organization: Compaq OpenVMS Engineering X-Mailer: Mozilla 3.03Gold (X11; I; OpenVMS V7.2-1 COMPAQ Professional Workstation) MIME-Version: 1.0 Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: Drop C/C++ better sooner than later References: <97cd06$hcn$1@pyrite.mv.net> <97egck$vc6$3@info.cs.uofs.edu> <3A9AEFCD.AFC8431@infopuls.com> <97etsu$j41$1@pyrite.mv.net> <3A9B023A.CBD414A5@infopuls.com> <3A9C2B88.8032D829@infopuls.com> <97j1jq$g00$1@info.cs.uofs.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 28 Feb 2001 09:33:19 -0500 NNTP-Posting-Host: 16.31.64.91 X-Trace: gazette.loc1.tandem.com 983370799 16.31.64.91 (Wed, 28 Feb 2001 06:33:19 PST) NNTP-Posting-Date: Wed, 28 Feb 2001 06:33:19 PST Xref: supernews.google.com comp.os.vms:20509 comp.sys.dec:2908 Bill Gunshannon wrote: > > In article , > "Rick Cadruvi" writes: > |> > |> 3. BREAK. Break should be allowed from ALL Begin/End ({}) > |> constructs (including IF ELSE). You should also be able to > |> BREAK # where # is the number of Begin/End blocks you want > |> to break out of. > > Sounds like you want GOTO back. I thought Dyjkstra convinced everyone > that was a bad idea?? ;-) Not quite. GOTOs can go backwards as well as forwards making a mess out of the program's flow. BREAKs can only go forward. Dyjkstra was commenting on certain abuses of GOTO. However, even with just going forward, I don't like BREAK since the reader of the code doesn't know where the BREAK will go. Sure, you can look and 'guess', but only the compiler knows for sure. And adding another level of BEGIN/END makes you go and visit all the enclosed BREAKs and increment their "level". Thats why I actually like forward GOTOs. You get to name and SEE the label in the source code. BLISS has a LEAVE statement and named-block. You give a name to block and say LEAVE with that name. Its always a forward branch and you don't have to worry about other BEGIN/ENDs being added. -- John Reagan Compaq Pascal Project Leader