Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!uunet!crdgw1!crdos1!davidsen From: davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) Newsgroups: comp.lang.c Subject: Re: The final word on GOTO (Don't I wis Summary: Neat, but not the same Message-ID: <867@crdos1.crd.ge.COM> Date: 6 Oct 89 15:49:39 GMT References: <6396@ficc.uu.net> <725@thor.wright.EDU> <6430@ficc.uu.net> <4447@buengc.BU.EDU> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Distribution: na Organization: GE Corp R&D Center Lines: 22 In article <4447@buengc.BU.EDU>, bph@buengc.BU.EDU (Blair P. Houghton) writes: | I'd go out of my way to fix it so that I could just do | | switch(format_char) { | case 'd': the stuff I put under d; break; | case 'o': the stuff I put under o; break; | case 'x': the stuff I put under x; break; | case 'u': the stuff I put under u; break; | } | | the stuff I put under donum; This doesn't do the same thing at all. In the original the "donum:" code was only executed if a case was matched in the switch. Your example executes it everytime. As you mentioned but didn't show you would have to define a bunch of flags and stuff to make this work. -- bill davidsen (davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen) "The world is filled with fools. They blindly follow their so-called 'reason' in the face of the church and common sense. Any fool can see that the world is flat!" - anon