Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!deimos.cis.ksu.edu!connelly From: connelly@deimos.cis.ksu.edu (Paul Connelly) Newsgroups: comp.lang.c Subject: Re: The final word on GOTO (Don't I wis Message-ID: <3980@deimos.cis.ksu.edu> Date: 9 Oct 89 19:52:43 GMT References: <6396@ficc.uu.net> <725@thor.wright.EDU> <6430@ficc.uu.net> <4447@buengc.BU.EDU> <867@crdos1.crd.ge.COM> <4462@buengc.BU.EDU> <4467@buengc.BU.EDU> Reply-To: connelly@deimos.cis.ksu.edu (Paul Connelly) Distribution: na Organization: Kansas State University, Dept of Computing & Information Sciences Lines: 19 In article <4467@buengc.BU.EDU> bph@buengc.bu.edu (Blair P. Houghton) writes: -P.S. Exercise: Show that allowing multiple "case 'x':" labels -for each constant 'x' would give exactly the results that the "cases" -keyword provides...the meaning of "break" changes, however, from -"termination of the smallest enclosing while, do, for, or switch," to -"termination of the smallest enclosing while, do, or for; or, jump -to the next matching case-label in the smallest enclosing switch; -or, iff no further cases match, terminate the smallest enclosing switch..." I think "break" should take you out of whatever, less confusion that way, but, since we're living in a dream world, let's use "continue" to jump to the next matching case constant in the smallest enclosing switch. :-) -- W. Paul Connelly Dept. of Comp. & Info. Sci. BITNET: connelly@ksuvax1.bitnet Kansas State University INTERNET: connelly@ksuvax1.cis.ksu.edu Manhattan, KS 66506 UUCP: ...!{rutgers,texbell}!ksuvax1!connelly (913) 532-6350