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:27:20 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!sunqbc.risq.qc.ca!cpk-news-hub1.bbnplanet.com!news.gtei.net!news-peer-europe.sprintlink.net!news.sprintlink.net!news.algonet.se!algonet!newsfeed01.se.dataphone.net!nntp.se.dataphone.net!news.powertech.no!nntp.newmedia.no!newsfeed1.enitel.no!masternews.telia.net!newspost.telia.com!news.udac.net!dagobert.mimer.se!not-for-mail From: per@nospam.mimer.se (Per Schr�der) Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: Drop C/C++ better sooner than later Date: 28 Feb 2001 15:03:52 GMT Organization: Mimer Message-ID: References: <87n1baae6s.fsf@prep.synonet.com> <97bm3a$7tv@gap.cco.caltech.edu> <3A99AED0.5DF07890@infopuls.com> <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> NNTP-Posting-Host: zeke.mimer.se X-Trace: dagobert.mimer.se 983372632 6031 192.71.97.74 (28 Feb 2001 15:03:52 GMT) X-Complaints-To: news@dagobert.mimer.se NNTP-Posting-Date: 28 Feb 2001 15:03:52 GMT User-Agent: Xnews/4.01.30 Xref: supernews.google.com comp.os.vms:20504 comp.sys.dec:2906 "Rick Cadruvi" wrote in : > 2. SWITCH/CASE doesn't auto-break. I NEVER depend on being able > to fall through to the next CASE in a SWITCH statement. The > default should be BREAK and allow specifying CONTINUE if you > want to drop through. THIS IS A BIG PROBLEM!!! > NO! This is a feature! Use it to exploit the statement skip feature in C. An example of perfectly valid C code can illustrate this: #include void main() { int n=2; char *p; switch (n) { case 1: p = "one"; if (0) case 2: p = "two"; if (0) case 3: p = "three"; printf("%s", p); break; } } ;-) /Per