From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII 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 08:54:00 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!sunqbc.risq.qc.ca!newspeer.cwnet.com!sjc1.nntp.concentric.net!newsfeed.concentric.net!global-news-master From: "Rick Cadruvi" Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: Drop C/C++ better sooner than later Date: 28 Feb 2001 16:50:36 GMT Organization: Concentric Internet Services Message-ID: <97ja8s$ql1@dispatch.concentric.net> 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: 64.0.157.124 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: supernews.google.com comp.os.vms:20536 comp.sys.dec:2918 I'm not arguing that you shouldn't be able to fall down to the next CASE. I'm arguing that allowing CONTINUE for that makes more sense since most SWITCH/CASE statements don't want to fall through, but intend to BREAK. rick... "Per Schr�der" wrote in message news:Xns905699EBF1261pescatmimer@192.71.97.199... > "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